IsWeaponInstance

From GECK
Jump to: navigation, search


A function added by the pp NVSE Plugin.

Description

Checks if a weapon is a Weapon Instance. Returns 1 if it's an instance of a baseform, returns 0 if it's the real baseform.

Syntax

[help]
(bool) IsWeaponInstance Weapon:ref

Example

let rWeap := Player.GetEquippedWeaponRef
if IsWeaponInstance rWeap
   ;Apply modifiers.
endif
let rWeap := Player.GetEquippedWeaponRef
if IsWeapInst rWeap
   ;Apply modifiers.
endif

See Also