Difference between revisions of "IsPlayable"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
(New page: A command for Oblivion Script Extender Returns whether the specified object is playable or not. '''Syntax:''' (isPlayable:bool) ''reference.''...)
 
imported>Low Post
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
   
Returns whether the specified object is playable or not.


'''Syntax:'''
'''Syntax:'''
  (isPlayable:bool) ''reference.''IsPlayable ''objectID:ref''
  (isPlayable:bool) ''reference.''IsPlayable ''objectID:ref''
Returns whether the specified object has the "Playable" flag is set or not. Note that if an item does not ''have'' the Playable flag, this function will still return False, as the Playable flag is not set (it does not exist). These items ''are'' still playable, however, so it would be wise to make sure the item is armor or clothing (the only objects with Playable flags) before checking this. Use [[IsPlayable2]] for a different behaviour.


==See Also==
==See Also==
*[[SetIsPlayable]]
*[[SetIsPlayable]]
*[[IsPlayable2]]


[[Category: Functions]]
[[Category: Functions]]

Latest revision as of 09:30, 23 March 2011

A command for Oblivion Script Extender

Syntax:

(isPlayable:bool) reference.IsPlayable objectID:ref

Returns whether the specified object has the "Playable" flag is set or not. Note that if an item does not have the Playable flag, this function will still return False, as the Playable flag is not set (it does not exist). These items are still playable, however, so it would be wise to make sure the item is armor or clothing (the only objects with Playable flags) before checking this. Use IsPlayable2 for a different behaviour.

See Also[edit | edit source]