Difference between revisions of "IsPlayable"
Jump to navigation
Jump to search
imported>Odessa m |
imported>Odessa (Correction- only works for armor) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = NVSE | |origin = NVSE | ||
|summary = Returns true if the specified | |summary = Returns true (1) if the specified armor or [[calling reference]] has the playable flag. Always returns true if called with a non-armor item. Added by NVSE 4.2. | ||
|name = IsPlayable | |name = IsPlayable | ||
|referenceType = reference | |||
|returnType = bool | |returnType = bool | ||
|arguments = {{FunctionArgument | |arguments = {{FunctionArgument | ||
|Name = | |Name = ToCheck | ||
|Type = | |Type = Armor | ||
|Optional = y | |||
}} | }} | ||
|referenceType = }} | |referenceType = }} | ||
==Example== | ==Example== | ||
<pre> | <pre> | ||
if IsPlayable | if IsPlayable SomeArmor | ||
; The | ; The armor is playable | ||
endif | endif | ||
</pre> | </pre> | ||
Line 19: | Line 21: | ||
*[[SetIsPlayable]] | *[[SetIsPlayable]] | ||
*[[IsQuestItem]] | *[[IsQuestItem]] | ||
*[[GetWeaponFlags1]] (allows checking the playable flag for weapons) | |||
[[Category:Functions_(NVSE)]] | [[Category:Functions_(NVSE)]] |
Revision as of 07:11, 23 August 2014
< [[::Category:Functions|Category:Functions]]
A function added by the New Vegas Script Extender.
Description
Returns true (1) if the specified armor or calling reference has the playable flag. Always returns true if called with a non-armor item. Added by NVSE 4.2.
Syntax
(bool) IsPlayable ToCheck:Armor
Example
if IsPlayable SomeArmor ; The armor is playable endif
See Also
- SetIsPlayable
- IsQuestItem
- GetWeaponFlags1 (allows checking the playable flag for weapons)