Is it possible that you can throw the proposed bottle at a unit so it can obtain the "flame" state, and the "flame" state can spread to surrounding objects/units/items via the blast radius?
Forum
![>](img/i_next.png)
![>](img/icons/stranded2.png)
![>](img/i_next.png)
![>](img/i_next.png)
Molotov-style script. Possible?
5 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)
Is it possible that you can throw the proposed bottle at a unit so it can obtain the "flame" state, and the "flame" state can spread to surrounding objects/units/items via the blast radius?
![s2 cmd](img/i_codehelp.png)
![s2 cmd](img/i_codehelp.png)
![s2 cmd](img/i_codehelp.png)
![s2 cmd](img/i_codehelp.png)
![s2 cmd](img/i_codehelp.png)
![s2 cmd](img/i_codehelp.png)
![s2 cmd](img/i_codehelp.png)
![s2 cmd](img/i_codehelp.png)
first locate where the impact takes place, then start an areal event which has a loop in it which checks whether the object/item/unit which shall be set on fire is in range, if yes, add the fire state.
![s2 cmd](img/i_codehelp.png)
though the description says that it only works for objects so you'd still need to loop the units and the items if you also want them to catch fire.
![s2 cmd](img/i_codehelp.png)
all the repetition is done by the
![s2 cmd](img/i_codehelp.png)
to get the ID of the current unit/item you can use the command
![s2 cmd](img/i_codehelp.png)
in order to have something to compare with I'd advise you to use the
![s2 cmd](img/i_codehelp.png)
![s2 cmd](img/i_codehelp.png)
after all the loops are done you can delete the flag again with
![s2 cmd](img/i_codehelp.png)
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)