Difference between revisions of "Talk:LlDetectedGrab"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
The example below causes an inaccurate return of <0.0,0.0,0.0> when I grab the object the script is in. Thus the spoken result is far from correct (unless I stand in the corner if the region! lol). Since I was trying to write an example I have nothing to go on to discover if I am using this function correctly. Would anyone care to comment? | The example below causes an inaccurate return of <0.0,0.0,0.0> when I grab the object the script is in. Thus the spoken result is far from correct (unless I stand in the corner if the region! lol). Since I was trying to write an example I have nothing to go on to discover if I am using this function correctly. Would anyone care to comment? | ||
default | default | ||
{ | { | ||
Line 13: | Line 13: | ||
} | } | ||
} | } | ||
Revision as of 22:25, 13 May 2009
The example below causes an inaccurate return of <0.0,0.0,0.0> when I grab the object the script is in. Thus the spoken result is far from correct (unless I stand in the corner if the region! lol). Since I was trying to write an example I have nothing to go on to discover if I am using this function correctly. Would anyone care to comment?
default
{
state_entry() { llSetStatus(PRIM_PHYSICS,TRUE); } touch_start(integer num_detected) { llSay(0,(string)llKey2Name(llDetectedKey(0)) + " has grabbed me from roughly" + (string)llRound(llVecDist(llDetectedGrab(0), llGetPos())) + " meters away."); }
}