Difference between revisions of "IsPlayable"

From the Fallout3 GECK Wiki
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 object has the playable flag. Always returns false if the item can not be flagged as playable in the editor.
  |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 = Item
   |Name = ToCheck
   |Type = Object
   |Type = Armor
  |Optional = y
   }}
   }}
  |referenceType = }}
  |referenceType = }}
==Example==
==Example==
<pre>
<pre>
if IsPlayable SomeItem
if IsPlayable SomeArmor
     ; The item is playable
     ; 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

[help]
(bool) IsPlayable ToCheck:Armor

Example

if IsPlayable SomeArmor
    ; The armor is playable
endif

See Also