Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

need help with a follow script

Jaxith Zapatero
Registered User
Join date: 24 Dec 2008
Posts: 20
01-18-2009 03:04
i have this follow script

default
{
state_entry()
{
llSensorRepeat("Midway Pistol Target 2D",NULL_KEY,ACTIVE|PASSIVE|SCRIPTED,20,TWO_PI,.1);
}

sensor(integer total_number)
{

llMoveToTarget(llDetectedPos(0)+<-1,.,.>,.3);
}
}


and i need the following object to only follow the X or Y or the object its set to follow which is "Midway Pistol Target 2D".

help would be much appreciated
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
OK then...
01-18-2009 16:15
The < -1, ., . > won't do. The '.'s need to be replace with 0.0. The -1 means one meter to the West of the target.

What do you mean by the X or the Y?
_____________________
So many monkeys, so little Shakespeare.
Jaxith Zapatero
Registered User
Join date: 24 Dec 2008
Posts: 20
fix
01-19-2009 05:22
i know the '.' has to be a 0 it was an accident that they got like that. now what i mean by the X or Y is the X axis or Y axis