Difference between revisions of "Osiris/API/CharacterIsEnemy"

From Divinity Engine Wiki
Jump to: navigation, search
m
 
Line 1: Line 1:
 +
===== Full Definition(s) =====
 +
* query '''CharacterIsEnemy'''('''''[in]'''(CHARACTERGUID)'''''_Character''', '''''[in]'''(CHARACTERGUID)'''''_OtherCharacter''', '''''[out]'''(INTEGER)'''''_Bool''')
 +
===== Description =====
 +
Returns whether '''_Character''' is an enemy of '''_OtherCharacter'''.
 +
===== Return Values =====
 +
* '''Success/Failure''': Default return value.
 +
* '''_Bool''': '''1''' if '''_Character''' and '''_OtherCharacter''' are enemies, '''0''' if not.
 
===== Notes =====
 
===== Notes =====
* See [[Osiris/API/CharacterIsAlly|CharacterIsAlly]] for detailed information, except that this query returns whether the characters are enemies.
+
* See [[Osiris/API/CharacterIsAlly|CharacterIsAlly]]
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/API/CharacterIsAlly|CharacterIsAlly]]
 
* [[Osiris/API/CharacterIsAlly|CharacterIsAlly]]

Latest revision as of 13:07, 20 December 2017

Full Definition(s)
  • query CharacterIsEnemy([in](CHARACTERGUID)_Character, [in](CHARACTERGUID)_OtherCharacter, [out](INTEGER)_Bool)
Description

Returns whether _Character is an enemy of _OtherCharacter.

Return Values
  • Success/Failure: Default return value.
  • _Bool: 1 if _Character and _OtherCharacter are enemies, 0 if not.
Notes
See Also