Osiris/API/ObjectEnteredCombat

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)
  • event ObjectEnteredCombat((GUIDSTRING)_Object, (INTEGER)_CombatID)
Description

Thrown when an object (character or item) enters a combat.

Parameters
  • _Object: The object that has entered the combat
  • _CombatID: A handle that identifies the combat. Should always be > 0.
Notes
  • This can be a combat that is still being set up, or an existing combat joined by a character that wandered too close.
  • If the combat is still being set up, not all information may be available yet (e.g., other initial objects may still be added after this one), and you cannot use APIs such as JumpToTurn yet. If you wish to perform some action when a combat has completely started, use CombatStarted instead.
See Also