HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

GetTriggerPlayer responds to Unit events

03-05-2007, 09:45 PM#1
masda70
I've just realized that the GetTriggerPlayer native in a function callback triggered by an EVENT_UNIT/EVENT_PLAYER_UNIT such as spell effect, summon, cast, begin/stop casting and issued point order (and probably others) appears to properly return the triggering unit's owning player.

I've never seen people using it this way, neither I do know if this is due to a recent patch but it seems to work! Did anyone actually know this already?
03-05-2007, 09:56 PM#2
shadow1500
Yes, I've seen some people use it (mainly GUI users).
I don't use it myself because I fear it might not work for some events, but if it works fine for all of them then it might be a fine replacement for GetOwningPlayer(GetTriggerUnit()).