IsPlayable

From the Fallout3 GECK Wiki
Revision as of 11:46, 13 September 2014 by imported>Odessa (4.5.7 update)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Returns true (1) if the specified form or calling reference, which may be an armor, weapon or ammo, has the playable flag. Added by NVSE 4.2, expanded by NVSE 4.5.

Syntax

[help]
(bool) IsPlayable ToCheck:form

Example

if IsPlayable Weap10mmPistol
    ; The weapon is playable
endif

Note

  • In NVSE 4.2, this function only worked for armor- 4.5.7 has expanded it to work with weapons and ammo as well.

See Also