GetEquippedWeapon - Actor

From the CreationKit Wiki
Revision as of 15:26, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Gets the actor's currently equipped weapon.

Syntax

Weapon Function GetEquippedWeapon(bool abLeftHand = false) native

Parameters

  • abLeftHand: The get the weapon from the left hand.
    • Default: false - The default will use the actors right hand.

Return Value

The Weapon the actor currently has equipped.

Examples

; Does the player have the uber dagger equipped in their right hand?
if (Game.GetPlayer().GetEquippedWeapon() == UberDagger)
  Debug.Trace("Player has uber-dagger equipped in their right hand")
endIf


; Does the player have the wimpy sword equipped in their left hand?
if (Game.GetPlayer().GetEquippedWeapon(true) == WimpyDagger)
  Debug.Trace("Player has wimpy sword in their left hand")
endIf

See Also