SetMaxRange - Weapon
Revision as of 10:37, 11 May 2012 by imported>Fg109 (Created page for SetMaxRange)
SKSE Member of: Weapon Script
Changes the maximum range of this weapon. (This function requires SKSE)
SyntaxEdit
Function SetMaxRange(float maxRange) native
ParametersEdit
- maxRange: The new maximum range of this weapon.
Return ValueEdit
None.
ExamplesEdit
; Double the maximum range of the player's right hand weapon
Weapon PlayerWeapon = Game.GetPlayer().GetEquippedWeapon()
PlayerWeapon.SetMaxRange(PlayerWeapon.GetMaxRange() * 2.0)