WoW:API GetCompanionInfo: Difference between revisions

Clarify spell ID return value
m (→‎Example: : Fixed code to match result)
(Clarify spell ID return value)
Line 20: Line 20:
:;creatureID: Integer - The NPC ID of the companion.
:;creatureID: Integer - The NPC ID of the companion.
:;creatureName: String - The name of the companion.
:;creatureName: String - The name of the companion.
:;creatureSpellID: Integer - The Spell ID to cast the companion.
:;creatureSpellID: Integer - The spell ID to cast the companion.  This is not passed to [[API CallCompanion|CallCompanion]], but can be used with, e.g., [[API GetSpellInfo|GetSpellInfo]].
:;icon: String - The texture of the icon for the companion.
:;icon: String - The texture of the icon for the companion.
:;issummoned: integer - 1 if the companion is summoned, nil if it's not
:;issummoned: integer - 1 if the companion is summoned, nil if it's not
Anonymous user