Difference between revisions of "IsEnabled - ObjectReference"
Jump to navigation
Jump to search
imported>Jlundin |
imported>JustinOther m (Noted as convenience function. '!IsDisabled()' is slightly faster/Linked IsDisabled) |
||
Line 23: | Line 23: | ||
endIf | endIf | ||
</source> | </source> | ||
== Notes == | |||
*This is a convenience function that inverts [[IsDisabled - ObjectReference|IsDisabled]], thus '!IsDisabled()' is ''slightly'' faster. | |||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] | ||
*[[IsDisabled - 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 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.