Osiris/API/CharacterIsAlly

From Divinity Engine Wiki
Revision as of 15:52, 8 August 2017 by Tinkerer (talk | contribs) (Osiris Core APIs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • query CharacterIsAlly([in](CHARACTERGUID)_Character, '[in]'(CHARACTERGUID)'_OtherCharacter, [out](INTEGER)_Bool)
Description

Returns whether _Character is an ally of _OtherCharacter.

Return Values
  • Success/Failure: Default return value.
  • _Bool: 1 if _Character and _OtherCharacter are allies, 0 if not.
Notes
  • Also works outside combat.
  • If _Character or _OtherCharacter is dead or dying, the result solely depends on the characters' alignments (factions). If they are alive, it is also influenced by temporary hostile relations, e.g. induced by attacking a neutral character.
See Also