How to create a modified poison cloud
Posted: Fri Dec 29, 2017 4:18 pm
I am trying to create a modified posion cloud, that is bigger than the regular poison capsel explosion, moves with the wind and maybe has less damage.
I have come so far:
This creates a regular poison cloud at the position of the given entity, but all modified values (for example color, duration and affected_by_wind) seem to be ignored.
Can anybody tell me what I am doing wrong here? How can I create a modified poison cloud?
Thanks in advance for any help...
PS: I was using the values from the poison-cloud entity from base game:
I have come so far:
Code: Select all
game.surfaces['nauvis'].create_entity({
name="poison-cloud",
position=myentity.position,
color = { r = 1, g = 0.1, b = 0.1 },
affected_by_wind = true,
duration = 60 * 40,
fade_away_duration = 2 * 60,
spread_duration = 100
})
Can anybody tell me what I am doing wrong here? How can I create a modified poison cloud?
Thanks in advance for any help...
PS: I was using the values from the poison-cloud entity from base game:
base game entity.lua