OgreEvent:OthersOnAbilityCast

From ISXOgre
Jump to: navigation, search

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.