Osiris/API/CharacterIsSummon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
* query '''CharacterIsSummon'''('''''[in]'''(CHARACTERGUID)'''''_Character''', '''''[out]'''''(INTEGER)'''_Bool''') | * query '''CharacterIsSummon'''('''''[in]'''(CHARACTERGUID)'''''_Character''', '''''[out]'''''(INTEGER)'''_Bool''') | ||
===== Description ===== | ===== Description ===== | ||
Returns whether '''_Character''' is a summon. | Returns whether '''_Character''' is a summon. Summons can be [[Osiris/API/CharacterIsPlayer|player-controlled]] or not. | ||
===== Return Values ===== | ===== Return Values ===== | ||
* '''Success/Failure''': Fails if '''_Character''' does not exist | * '''Success/Failure''': Fails if '''_Character''' does not exist. | ||
* '''_Bool''': '''1''' if '''_Character''' is a summon, '''0''' if not | * '''_Bool''': '''1''' if '''_Character''' is a summon, '''0''' if not. | ||
===== Notes ===== | ===== Notes ===== | ||
* Summons can also be distinguished by the fact that hey have the '''SUMMON''' tag. | * Summons can also be distinguished by the fact that hey have the '''SUMMON''' tag. |
Revision as of 20:26, 28 November 2017
Full Definition(s)
- query CharacterIsSummon([in](CHARACTERGUID)_Character, [out](INTEGER)_Bool)
Description
Returns whether _Character is a summon. Summons can be player-controlled or not.
Return Values
- Success/Failure: Fails if _Character does not exist.
- _Bool: 1 if _Character is a summon, 0 if not.
Notes
- Summons can also be distinguished by the fact that hey have the SUMMON tag.
- If you wish to know whether a summon is player-controlled, also check CharacterIsPlayer.