Difference between revisions of "OgreEvent:OthersOnAbilityCast"

From ISXOgre
Jump to: navigation, search
(Created page with "== OgreEvent_OthersOnAbilityCast == When someone else in your OgreRelayGroup uses an ability, it will fire this event. == To attach == <pre>Event[OgreEvent_OthersOnAbilityCa...")
(No difference)

Revision as of 11:06, 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_OnAbilityCast(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.