Don't click here unless you want to be banned.

LSL Wiki : llGetEnergy

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl427.us.archive.org
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
Comments [Hide comments/form]
im not sure but i believe llSetScale and llSetPos also have an effect on energy ( for nonphysical obviously ), someone else please test this and update this page
-- AmagillOmegamu (2006-05-08 22:03:09)
How much energy is depleted after llSetPos is called?
-- Bobbyb30 (2007-03-23 17:21:50)