llGetForce

From Second Life Wiki
Revision as of 13:29, 22 August 2014 by Joanne Furlough (talk | contribs) (Undo revision 1190204 by Rolig Loon (Talk))
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Summary

Function: vector llGetForce( );

Returns a vector that is the force (if the script is physical)

Examples

<lsl> default {

   state_entry()
   {
       llSetForce(<0,llFrand(10),0>,FALSE); //Sets the force in a frand of 10 in Y axis.
       llSetTimerEvent(1); //Resets the force every second.
   }
   touch_start(integer total_num)
   {
       llOwnerSay((string)llGetForce()); //Says the force.
   }
   timer()
   {
       llResetScript();
   }

}

</lsl>

See Also

Functions

•  llGetOmega
•  llGetVel
•  llGetTorque
•  llGetMass
•  llGetAccel
•  llSetForce
•  llSetTorque
•  llSetForceAndTorque

Deep Notes

Search JIRA for related Issues

Signature

function vector llGetForce();