default
{
state_entry()
{
llSay(0, "Hello, Avatar!"
;}
touch_start(integer total_number)
{
llMoveToTarget(<10,20,25>, 1);
}
}
These forums are CLOSED. Please visit the new forums HERE
llMoveToTarget - syntax query |
|
|
Boris Eebus
Registered User
Join date: 8 Feb 2008
Posts: 45
|
05-13-2008 08:00
HI I'm trying to get a prim to move from 10,10,25 to 20,10,25 on touch, I'm trying to get my head around the syntax, I'm sure ive missed something in the llMoveToTarget():
default { state_entry() { llSay(0, "Hello, Avatar!" ;} touch_start(integer total_number) { llMoveToTarget(<10,20,25>, 1); } } |
|
Beezle Warburton
=o.O=
Join date: 10 Nov 2006
Posts: 1,169
|
05-13-2008 08:08
http://rpgstats.com/wiki/index.php?title=At_target
Helpful to have "at_target" and "not_at_target" events, as well as making the prim physical. There's an example at the link above. |
|
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
|
05-13-2008 08:12
/me bets you didn't make it physical - gotta be physical.
And, if you're just making it move 10m in X, you're probably better doing this... llMoveToTarget(llGetPos() + <10.0, 0.0, 0.0>, 1.0); _____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224 - If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left |