float llGetEnergy()
Gets the
energy of the
object the
script is in. The
return value is a
normalized float between 0.0 and 1.0.
Energy decreases with
calls to:
llMoveToTarget
llApplyImpulse
llSetPos
llSetForce
llSetTorque
llApplyRotationalImpulse
llPushObject
When energy reaches
0, calls to these
functions have no effects.
When enough
time passes (where no calls to these functions are made) energy is replenished to 1.0 again). This function is object-specific, not script-specific, so if a script calls one of the energy-draining functions, another script on the same object can "see" that energy is being drained.
This article wasn't helpful for you? Maybe the
related article at the LSL Portal is able to bring enlightenment.
Functions |
Energy