SetMinRange - Weapon

SKSE Member of: Weapon Script

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

SyntaxEdit

Function SetMinRange(float minRange) native

ParametersEdit

  • minRange: The new minimum range of this weapon.

Return ValueEdit

None.

ExamplesEdit

; Double the minimum range of the player's right hand weapon
Weapon PlayerWeapon = Game.GetPlayer().GetEquippedWeapon()
PlayerWeapon.SetMinRange(PlayerWeapon.GetMinRange() * 2.0)

See AlsoEdit