Difference between revisions of "OgreEvent:OthersOnAbilityCast"
From ISXOgre
(→To use) |
(→Comments) |
||
Line 20: | Line 20: | ||
There are times where some of the fields will be blank. Such as abilities that have no target, won't have an 'OnPlayer' or 'OnPlayerID'. | There are times where some of the fields will be blank. Such as abilities that have no target, won't have an 'OnPlayer' or 'OnPlayerID'. | ||
− | This does NOT fire for yourself. Use [[OgreEvent:OnAbilityCast | + | This does NOT fire for yourself. Use [[OgreEvent:OnAbilityCast|OgreEvent_OnAbilityCast]] to see your own casts. |
Latest revision as of 11:08, 14 December 2015
OgreEvent_OthersOnAbilityCast
When someone else in your OgreRelayGroup uses an ability, it will fire this event.
To attach
Event[OgreEvent_OthersOnAbilityCast]:AttachAtom[OgreEvent_OthersOnAbilityCast]
To use
atom OgreEvent_OthersOnAbilityCast(string _Caster, uint _AbilityID, string _AbilityName, uint _OnPlayerID, string _OnPlayer) { if ${_OnPlayer.Length} > 0 || ${_OnPlayerID} > 0 echo ${Time}: ${_Caster} casted ${_AbilityName} ( ${_AbilityID} ) on ${_OnPlayer} ( ${_OnPlayerID} ) else echo ${Time}: ${_Caster} casted ${_AbilityName} ( ${_AbilityID} ) }
Comments
There are times where some of the fields will be blank. Such as abilities that have no target, won't have an 'OnPlayer' or 'OnPlayerID'.
This does NOT fire for yourself. Use OgreEvent_OnAbilityCast to see your own casts.