Difference between revisions of "Osiris/API/CharacterIsEnemy"

From Divinity Engine Wiki
Jump to: navigation, search
m
m
 
(2 intermediate revisions by the same user not shown)
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]]
* [[Osiris/API/CharacterIsEnemy|CharacterIsEnemy]]
+
* [[Osiris/API/CharacterIsNeutral|CharacterIsNeutral]]
 
   
 
   
[[Category:Osiris Queries]]
+
[[Category:Osiris Queries|CharacterIsEnemy]]

Latest revision as of 12: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