Background for Skyrim SE
Member of the Weapon script
voidfunctionSetMaxRange(floatmaxRange)Native

Description

Wiki Description

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


Parameters

  1. floatmaxRange

    CK Wiki Description

    The new maximum range of this weapon.


Examples

; Double the maximum range of the player's right hand weapon
Weapon PlayerWeapon = Game.GetPlayer().GetEquippedWeapon()
PlayerWeapon.SetMaxRange(PlayerWeapon.GetMaxRange() * 2.0)

Auto-Generated Example

float myFloat__maxRange

myWeapon__toCallFunctionOn.SetMaxRange(myFloat__maxRange)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.