Difference between revisions of "IsPlayable"
Jump to navigation
Jump to search
imported>Odessa (4.5.7 update) |
imported>Hemingway (source nvse_whatnew) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = NVSE | |origin = NVSE | ||
|summary = Returns true (1) if the specified form or [[calling reference]], which may be an armor, weapon or | |summary = Returns true (1) if the specified form or [[calling reference]], which may be an armor, weapon, ammo or race, has the playable flag. Added by NVSE 4.2 (see notes). | ||
|name = IsPlayable | |name = IsPlayable | ||
|referenceType = reference | |referenceType = reference | ||
Line 20: | Line 20: | ||
==Note== | ==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. | * In NVSE 4.2, this function only worked for armor- 4.5.7 has expanded it to work with weapons and ammo as well. | ||
* Since NVSE 5.0.2, this function also supports races. | |||
==See Also== | ==See Also== | ||
*[[SetIsPlayable]] | *[[SetIsPlayable]] |
Revision as of 06:36, 1 November 2015
< [[::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, ammo or race, has the playable flag. Added by NVSE 4.2 (see notes).
Syntax
(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.
- Since NVSE 5.0.2, this function also supports races.