LlGetForce
Looking for the current API? Open the llGetForce reference →
Return value notes
Returns a vector that is the force (if the script is physical)
Examples
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();
}
}See also: functions
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.