Jump to content
Sign in to follow this  
Winters

Setpos and Warp question

Recommended Posts

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 smile_o.gif

Share this post


Link to post
Share on other sites

cond: player distance dude1 > 5

on act: player setpos getpos dude1

or something like that? rock.gif

Share this post


Link to post
Share on other sites

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
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.... wink_o.gif

also, i suggest you take 15 instead of 5, cuz thats pretty close... smile_o.gif

Share this post


Link to post
Share on other sites

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
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... tounge_o.gif

Share this post


Link to post
Share on other sites
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....  wink_o.gif

also, i suggest you take 15 instead of 5, cuz thats pretty close...  smile_o.gif

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
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....  wink_o.gif

also, i suggest you take 15 instead of 5, cuz thats pretty close...  smile_o.gif

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? rock.gif

Share this post


Link to post
Share on other sites

I got it all set, i used your condition (ofpforum) and the condition by (victor_s) and it works like a charm.

Thanks Guys biggrin_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×