IsEnabled - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

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

Syntax

bool Function IsEnabled()
	return !IsDisabled()
EndFunction

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.

See Also