This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
How do i create a trigger that makes all units in a region die?
got the conditions and stuff all worked out, i just have no idea how to make it delete the units though. Please help :)
@jmzg0: Go
You can do this either using "Pich Each Unit In Unit Group":
Unit Group - Pick each unit in (Any units in <Region> owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions) Actions Unit - Kill (Picked unit)
Or using a separate Variable and "For Each Unit In Unit Group":
Local Variables _unit = No Unit <Unit> Actions Unit Group - For each unit _unit in (Any units in <Region> owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) do (Actions) Actions Unit - Kill _unit
CheersThen
How do i create a trigger that makes all units in a region die?
got the conditions and stuff all worked out, i just have no idea how to make it delete the units though. Please help :)
@jmzg0: Go
You can do this either using "Pich Each Unit In Unit Group":
Or using a separate Variable and "For Each Unit In Unit Group":
Cheers
Then