Difference between revisions of "SheatheWeapon - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Bot Owned
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Actor Script''' Forces this actor to sheathe his weapon. == Syntax == <source lang="p...")
 
imported>Bot Owned
m (→‎Examples: Small Fix to Example)
 
Line 22: Line 22:


If PlayerRef.IsWeaponDrawn() ;If Player has a weapon drawn,
If PlayerRef.IsWeaponDrawn() ;If Player has a weapon drawn,
     Game.GetPlayer().SheatheWeapon() ;Sheathe the drawn weapon.
     PlayerRef.SheatheWeapon() ;Sheathe the drawn weapon.
EndIf
EndIf
</source>
</source>

Latest revision as of 22:18, 31 May 2013

SKSE Member of: Actor Script

Forces this actor to sheathe his weapon.

Syntax[edit | edit source]

Function SheatheWeapon() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

Actor PlayerRef = Game.GetPlayer()

If PlayerRef.IsWeaponDrawn() ;If Player has a weapon drawn,
    PlayerRef.SheatheWeapon() ;Sheathe the drawn weapon.
EndIf


See Also[edit | edit source]