GetEquippedWeapon - Actor
Jump to navigation
Jump to search
Member of: Actor Script
Gets the actor's currently equipped weapon.
Syntax[edit | edit source]
Weapon Function GetEquippedWeapon(int aiEquipIndex = 0) native
Parameters[edit | edit source]
- aiEquipIndex : The equip index to get the equipped weapon for
- Default: 0 - The default will use the actors default equip slot
Return Value[edit | edit source]
The Weapon the actor currently has equipped.
Examples[edit | edit source]
; Does the player have the uber dagger equipped in their first equip slot?
if (Game.GetPlayer().GetEquippedWeapon() == UberDagger)
Debug.Trace("Player has uber-dagger equipped in their first equip slot")
endIf
; Does the player have the wimpy sword equipped in their second equip slot?
if (Game.GetPlayer().GetEquippedWeapon(1) == WimpyDagger)
Debug.Trace("Player has wimpy sword in their second equip slot")
endIf