- Joined
- Mar 16, 2008
- Messages
- 964
I found a piece of code that needs to be added to my map but I want it to reference a specific unit in my map, CASTLE 0012 <gen>, and not triggering unit. Can anyone help me with this? Can't find the answer on any guide.
edit: my goal here to is cancel a 2nd trained hero after the first one is trained, if the player queues up two, then it limits heroes. hope that makes sense. the above call command is supposed to issue 'esc' key stroke, cancelling training of the 2nd hero.
-
call IssueImmediateOrderById(GetTriggerUnit(), 851976)
edit: my goal here to is cancel a 2nd trained hero after the first one is trained, if the player queues up two, then it limits heroes. hope that makes sense. the above call command is supposed to issue 'esc' key stroke, cancelling training of the 2nd hero.
Last edited: