Difference between revisions of "Osiris/API/CharacterSetFightMode"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented CharacterSetFightMode)
 
m (Full Definition(s))
 
Line 1: Line 1:
 
===== Full Definition(s) =====
 
===== Full Definition(s) =====
* (call '''CharacterUseSkill'''(''(CHARACTERGUID)'''''_Character''', ''(INTEGER)'''''_Enabled''', ''(INTEGER)'''''_Immediately''')
+
* call '''CharacterUseSkill'''(''(CHARACTERGUID)'''''_Character''', ''(INTEGER)'''''_Enabled''', ''(INTEGER)'''''_Immediately''')
 +
 
 
===== Description =====
 
===== 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.
 
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.

Latest revision as of 21:47, 20 July 2019

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