Osiris/API/CharacterSetFightMode

From Divinity Engine Wiki
Revision as of 14:50, 9 April 2019 by Tinkerer (talk | contribs) (Documented CharacterSetFightMode)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • (call CharacterUseSkill((CHARACTERGUID)_Character, (INTEGER)_Enabled, (INTEGER)_Immediately)
Description

Makes _Character draw (_Enabled = 1) or sheathe (_Enabled = 0) their weapons. If _Immediately is 1, the (un)sheathing animation is skipped and the unsheathed status is (un)set immediately.

Notes
  • Setting the fight mode only changes the visual appearance of the character. It has no gameplay consequences, except for players (NPCs may comment on a player walking around with unsheathed weapons).
  • When a character joins a combat as an active participant, it will draw its weapons (and sheathe them again when leaving).
See Also