Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
10-19-2009 21:45
hey all (again), here is a script i hacked together. it's meant to move me 10m vertical however it moves me approx 300m vertical. key owner_key; default { state_entry() { llSay(0, "Hello, Avatar!"); llRequestAgentData(owner_key, DATA_NAME); }
touch_start(integer total_number) { llSay(0, "Touched."); vector position = llGetPos(); float x = position.z + 10; llSay(0, (string)x); llSay(0, (string)position.z); llSitTarget(<0.3, 0, x>, ZERO_ROTATION); llUnSit(owner_key);
} }
(please ignore the "Hello Avatar" as i said i hacked this together)
_____________________
DANCE WITH KIRBY (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^) (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^)
|
Kaluura Boa
Polygon Project
Join date: 27 Mar 2007
Posts: 194
|
10-19-2009 23:31
llSitTarget() is relative to the prim. So if you want to send the AV 10m up, you just write:
llSitTarget(<0.0, 0.0, 10.0>, ZERO_ROTATION);
And btw, llUnSit() won't do anything where you put it... unless you happen to be sitting when you save the script. Neither will llRequestAgentData() since owner_key is undefined and the corresponding event is missing.
It looks like you're trying to do a sit teleporter... maybe an owner-only sit TP?
|