- Joined
- Oct 24, 2012
- Messages
- 6,545
I am having a problem getting the unit that is being trained with the event EVENT_PLAYER_UNIT_TRAIN_START
I tried GetTriggerUnit() but it keeps returning the unit that is doing the training not the unit that is being trained.
I also have to get the unit that is canceled by the player in EVENT_PLAYER_UNIT_TRAIN_CANCEL
Any help is appreciated.
I tried GetTriggerUnit() but it keeps returning the unit that is doing the training not the unit that is being trained.
I also have to get the unit that is canceled by the player in EVENT_PLAYER_UNIT_TRAIN_CANCEL
Any help is appreciated.
Last edited: