SetMinRange - Weapon
Jump to navigation
Jump to search
SKSE Member of: Weapon Script
Changes the minimum range of this weapon. (This function requires SKSE)
Syntax[edit | edit source]
Function SetMinRange(float minRange) native
Parameters[edit | edit source]
- minRange: The new minimum range of this weapon.
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Double the minimum range of the player's right hand weapon
Weapon PlayerWeapon = Game.GetPlayer().GetEquippedWeapon()
PlayerWeapon.SetMinRange(PlayerWeapon.GetMinRange() * 2.0)