Difference between revisions of "IsDisabled - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>JustinOther
m (Noted '!IsDisabled()' is slightly faster thanIsEnabled /Linked IsEnabled)
imported>VikMorroHun
m (→‎Notes: corrected typo)
 
Line 25: Line 25:


== Notes ==
== Notes ==
*'!IsDisabled()' is ''slightly'' faster is faster than [[IsEnabled - ObjectReference|IsEnabled]].
* 'IsDisabled()' is ''slightly'' faster than [[IsEnabled - ObjectReference|IsEnabled]].


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

Latest revision as of 11:57, 5 October 2013

Member of: ObjectReference Script

Checks to see if this object is currently disabled.

Syntax[edit | edit source]

bool Function IsDisabled() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

If this object is currently disabled.

Examples[edit | edit source]

; Is the shield disabled?
if (ShieldProperty.IsDisabled())
  Debug.Trace("The shield is down!")
endIf

Notes[edit | edit source]

  • 'IsDisabled()' is slightly faster than IsEnabled.

See Also[edit | edit source]