SetSpeed - Weapon
Revision as of 09:41, 11 May 2012 by imported>Fg109 (Created page for SetSpeed)
SKSE Member of: Weapon Script
Changes the speed of this weapon. (This function requires SKSE)
Syntax[edit | edit source]
Function SetSpeed(float speed) native
Parameters[edit | edit source]
- speed: The new speed of this weapon.
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Double the speed of the player's right hand weapon
Weapon PlayerWeapon = Game.GetPlayer().GetEquippedWeapon()
PlayerWeapon.SetSpeed(PlayerWeapon.GetSpeed() * 2.0)