IsEnabled - ObjectReference
Revision as of 09:31, 7 October 2012 by imported>JustinOther (Noted as convenience function. '!IsDisabled()' is slightly faster/Linked IsDisabled)
Member of: ObjectReference Script
Checks to see if this object is currently enabled. (The opposite of IsDisabled)
Syntax
bool Function IsEnabled()
Parameters
None.
Return Value
If this object is currently enabled.
Examples
; Is the shield enabled?
if (ShieldProperty.IsEnabled())
Debug.Trace("The shield is up!")
endIf
Notes
- This is a convenience function that inverts IsDisabled, thus '!IsDisabled()' is slightly faster.