Difference between revisions of "IsDisabled - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Rhavlovick
m (1 revision: Clobber re-import by Henning)
 
imported>JustinOther
m (Noted '!IsDisabled()' is slightly faster thanIsEnabled /Linked IsEnabled)
Line 23: Line 23:
endIf
endIf
</source>
</source>
== Notes ==
*'!IsDisabled()' is ''slightly'' faster is faster than [[IsEnabled - ObjectReference|IsEnabled]].


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]
*[[IsEnabled - ObjectReference]]
*[[Disable - ObjectReference]]
*[[Disable - ObjectReference]]
*[[Enable - ObjectReference]]
*[[Enable - ObjectReference]]

Revision as of 09:31, 7 October 2012

Member of: ObjectReference Script

Checks to see if this object is currently disabled.

Syntax

bool Function IsDisabled() native

Parameters

None.

Return Value

If this object is currently disabled.

Examples

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

Notes

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

See Also