Difference between revisions of "Osiris/API/CharacterGetEquippedWeapon"

From Divinity Engine Wiki
Jump to: navigation, search
(Created page with "===== Full Definition(s) ===== * query '''CharacterGetEquippedWeapon'''('''''[in]'''(CHARACTERGUID)'''''_Character''',''''' [out]'''''(''GUIDSTRING'')'''_ItemGUID''') ===== De...")
 
Line 4: Line 4:
 
Returns in '''_ItemGUID''' the item equipped by '''_Character''' in slot '''_Slotname''', if any.
 
Returns in '''_ItemGUID''' the item equipped by '''_Character''' in slot '''_Slotname''', if any.
 
===== Return Values =====
 
===== Return Values =====
* '''Success/Failure''': Fails if '''_Character''' does not exist, or if no item is equipped in '''_Slotname'''.
+
* '''Success/Failure''': Fails if '''_Character''' does not exist, or if the character is not wielding a weapon in their right hand.
 
* '''_ItemGuid''': The weapon equipped by '''_Character''' in their main (right) hand.
 
* '''_ItemGuid''': The weapon equipped by '''_Character''' in their main (right) hand.
 
===== Notes =====
 
===== Notes =====

Revision as of 15:35, 21 December 2017

Full Definition(s)
  • query CharacterGetEquippedWeapon([in](CHARACTERGUID)_Character, [out](GUIDSTRING)_ItemGUID)
Description

Returns in _ItemGUID the item equipped by _Character in slot _Slotname, if any.

Return Values
  • Success/Failure: Fails if _Character does not exist, or if the character is not wielding a weapon in their right hand.
  • _ItemGuid: The weapon equipped by _Character in their main (right) hand.
Notes
See Also