Moderator
M
Moderator
12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.
6 Dec 2011
Bribe: The line where you say the user should add some conditions for the gate ("Insert a condition here. Like if you want it to only open for 1 player or something.") should be where you have the conditions for "Picked unit is flying == false" and "Picked unit is dead == false". This will make your system easier to edit and it will also run more quickly especially if there are large numbers of units on the map.
Instead of creating a point for the region and removing the point as well, per every unit on the map throughout the entire game, do this from the looping trigger in place of the region/point stuff:
IcemanBo: Too long as NeedsFix. Rejected.
6 Dec 2011
Bribe: The line where you say the user should add some conditions for the gate ("Insert a condition here. Like if you want it to only open for 1 player or something.") should be where you have the conditions for "Picked unit is flying == false" and "Picked unit is dead == false". This will make your system easier to edit and it will also run more quickly especially if there are large numbers of units on the map.
Instead of creating a point for the region and removing the point as well, per every unit on the map throughout the entire game, do this from the looping trigger in place of the region/point stuff:
- Custom script: call MoveRectTo(udg_GateRect, GetUnitX(GetEnumUnit()), GetUnitY(GetEnumUnit()))