Jump to content
Sign in to follow this  
baca85

Setpos and getpos

Recommended Posts

Im trying to make a script and when trying to create a new postion have a problem

Quote[/b] ]_ch setpos [(getpos _ch select 0),(getpos _ch select 1),(getpos this select 2)-.2]

Share this post


Link to post
Share on other sites

And... whats the problem?

Edit: Oh I might see, try this

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_ch setpos [(getpos _ch select 0),(getpos _ch select 1),-.2]

Share this post


Link to post
Share on other sites

Edit: changed script

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_ch = _this select 1

#loop

_ch setpos [(getpos _ch select 0),(getpos _ch select 1),(getpos _ch select 2) -.2]

~.1

goto "loop"

That might work?

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  

×