Winters 1 Posted January 13, 2005 Hi all, I wanted to know if anyone can tell me how i can make the player stay within 2 meters of an AI who is giving you a tour and some instruction. I want it to work that if you go further away than say 5 meters you will get setpos'd back to the AI. Thanks Share this post Link to post Share on other sites
NeMeSiS 11 Posted January 13, 2005 cond: player distance dude1 > 5 on act: player setpos getpos dude1 or something like that? Share this post Link to post Share on other sites
Winters 1 Posted January 13, 2005 i will try it out, one thing i noticed is that wont your solution put you on top of dude1? thanks Share this post Link to post Share on other sites
NeMeSiS 11 Posted January 13, 2005 i will try it out, one thing i noticed is that wont your solution put you on top of dude1? i guess that you will teleport very close to him and slide abit away from him.... also, i suggest you take 15 instead of 5, cuz thats pretty close... Share this post Link to post Share on other sites
Victor_S. 0 Posted January 13, 2005 You can just put getpos? I thought you had to put like: player setpos[(getpos dude1 select 0)+1,getpos dude1 select 1] Share this post Link to post Share on other sites
NeMeSiS 11 Posted January 13, 2005 You can just put getpos?I thought you had to put like: player setpos[(getpos dude1 select 0)+1,getpos dude1 select 1] well, i know my way works with game logics and triggers..., not sure with real units... Share this post Link to post Share on other sites
Winters 1 Posted January 13, 2005 i will try it out, one thing i noticed is that wont your solution put you on top of dude1? i guess that you will teleport very close to him and slide abit away from him.... Â also, i suggest you take 15 instead of 5, cuz thats pretty close... Â It works but i do need to have a bit of seperation between the two when you get set pos'd. Any ideas? Share this post Link to post Share on other sites
NeMeSiS 11 Posted January 13, 2005 i will try it out, one thing i noticed is that wont your solution put you on top of dude1? i guess that you will teleport very close to him and slide abit away from him.... Â also, i suggest you take 15 instead of 5, cuz thats pretty close... Â It works but i do need to have a bit of seperation between the two when you get set pos'd. Any ideas? maybe player setpos [(getpos dude1)+1,getpos dude1, 0] or something? Share this post Link to post Share on other sites
Winters 1 Posted January 13, 2005 I got it all set, i used your condition (ofpforum) and the condition by (victor_s) and it works like a charm. Thanks Guys Share this post Link to post Share on other sites