SetReach - Weapon

Revision as of 10:31, 11 May 2012 by imported>Fg109 (Created page for SetReach)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SKSE Member of: Weapon Script

Changes the reach of this weapon. (This function requires SKSE)

SyntaxEdit

Function SetReach(float reach) native

ParametersEdit

  • reach: The new reach of this weapon.

Return ValueEdit

None.

ExamplesEdit

; Double the reach of the player's right hand weapon
Weapon PlayerWeapon = Game.GetPlayer().GetEquippedWeapon()
PlayerWeapon.SetReach(PlayerWeapon.GetReach() * 2.0)

See AlsoEdit