IsEnabled - ObjectReference

Member of: ObjectReference Script

Checks to see if this object is currently enabled. (The opposite of IsDisabled)

SyntaxEdit

bool Function IsEnabled()
	return !IsDisabled()
EndFunction

ParametersEdit

None.

Return ValueEdit

If this object is currently enabled.

ExamplesEdit

; Is the shield enabled?
if (ShieldProperty.IsEnabled())
  Debug.Trace("The shield is up!")
endIf

NotesEdit

  • This is a convenience function that inverts IsDisabled, thus '!IsDisabled()' is slightly faster.

See AlsoEdit