Background for Skyrim SE
Member of the Actor script
WeaponfunctionGetEquippedWeapon(boolabLeftHand=false)Native

Description

Wiki Description

Gets the actor's currently equipped weapon.

Documentation Comment

Gets this actor's currently equipped weapon
false - Default - Right Hand
true - Left Hand


Caveats


Parameters

boolabLeftHand=false

CK Wiki Description

If true, will return the weapon equipped in the actor's left hand. If false, will return the right-hand weapon instead.

  • Default:False

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

Auto-Generated Example

bool myBool__abLeftHand

Weapon returnedValue = myActor__toCallFunctionOn.GetEquippedWeapon(myBool__abLeftHand)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.