- Joined
- Mar 17, 2007
- Messages
- 412
~ Was a slight overlook, no longer need
Last edited:
I'd rather say its oversight than intendedOnly in PlayerUnitEvents. But there are events where only units are registered without corresponding player, then (Triggering Player) won't work, for example "Enters Region" event.
In StarCraft II for some events it is that, for others it means the player who's interaction caused the event to fire. For example if player 2 was to order a unit of player 1 to cast an ability in StarCraft II then the owner of triggering unit is player 1 but triggering player is player 2.in wc3 triggerPlayer always equal to getOwningPLayer(getTriggerUnit()