GetMaxRange - Weapon

From the CreationKit Wiki
Revision as of 21:01, 5 September 2026 by HoodBot (talk | contribs) (Convert source tags to syntaxhighlight)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SKSE Member of: Weapon Script

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

Syntax[edit | edit source]

float Function GetMaxRange() native

Parameters[edit | edit source]

  • None

Return Value[edit | edit source]

The maximum range of this weapon.

Examples[edit | edit source]

; Obtain the maximum range of the player's currently equipped right-hand weapon
Float MaxRange = Game.GetPlayer().GetEquippedWeapon().GetMaxRange()

See Also[edit | edit source]