Difference between revisions of "IsPlayable"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(note on items without "Playable" flag.)
imported>DragoonWraith
m (grammar...)
Line 4: Line 4:
  (isPlayable:bool) ''reference.''IsPlayable ''objectID:ref''
  (isPlayable:bool) ''reference.''IsPlayable ''objectID:ref''


Returns whether the specified object 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.
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.


==See Also==
==See Also==

Revision as of 15:22, 3 March 2008

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.

See Also