- Joined
- Aug 18, 2007
- Messages
- 1,390
Hello all
Im making on a map named Aircraft (http://www.hiveworkshop.com/forums/showthread.php?t=43148)
But i need a trigger i cant do myself. This is what it should:
Every 0.01 sec it should pick all units owned by players and set their flying hieght to thier flyinghieght - the ground hieght. If theyre flying hight is lower than 1, the flying hieght would be set to 1. If the flying hieght is 1 the picked unit will die.
If you have troubles understand it maybe this could help:
Hope i could get some help ^^
Im making on a map named Aircraft (http://www.hiveworkshop.com/forums/showthread.php?t=43148)
But i need a trigger i cant do myself. This is what it should:
Every 0.01 sec it should pick all units owned by players and set their flying hieght to thier flyinghieght - the ground hieght. If theyre flying hight is lower than 1, the flying hieght would be set to 1. If the flying hieght is 1 the picked unit will die.
If you have troubles understand it maybe this could help:
-
Event:
- Every 0.01 seconds of gametime
-
Actions:
- Unit Group - Pick all units in units in playable map area and do actions:
-
If/then/else
-
If Condition:
- Player - Owner of picked unit is a player equal to true
-
Then Actions:
- Unit - Set Picked units flying hieght to Flying hieght of picked unit - ground hieght of ground at posision of picked unit
-
If Condition:
Hope i could get some help ^^
Last edited by a moderator: