Jump to content
Sign in to follow this  
cleanrock

BUG: tank setPos [x,y,z>0]

Recommended Posts

While i was doing some heli-transport scripts i found a bug that makes it impossible to place a tank in air when the tank is not over sea, i.e. it works as it should when placing the tank above sea but not over ground.

Download this 1kByte mission to see the bug in action: TankSetPosBug.intro.pbo

Share this post


Link to post
Share on other sites

i am not sure if i got u right here. well check the mission east malden. it does have a vehicle transport script for mulitplayer. sry if thats not what u meant.

regards

Share this post


Link to post
Share on other sites
Quote[/b] ]well check the mission east malden. it does have a vehicle transport script for mulitplayer

that mission suffers of the same bug .. maybe this bug was introduced recently .. i am running 1.96

Share this post


Link to post
Share on other sites
i can...  rock.gif

u can what ? smile_o.gif

does a tank stay in air for u when it is setPosed above ground ?

what version do u run ?

Share this post


Link to post
Share on other sites

"it's not a bug, it's a feature"

for the tank to stay in the air (for whatever realism purposes you might need that ...), you need to loop the setpos command

I don't think this belongs in the troubleshooting forum, this clearly belongs in mission editing

Share this post


Link to post
Share on other sites
"it's not a bug, it's a feature"

for the tank to stay in the air (for whatever realism purposes you might need that ...), you need to loop the setpos command

I don't think this belongs in the troubleshooting forum, this clearly belongs in mission editing

test my mission (see first post) that show the bug and u will understand that it is a bug

it is probably a new bug since i dont think the "east malden" mission has been that crappy for transporting tanks

Share this post


Link to post
Share on other sites

To make it even more strange.

Everything works if you fire a LAW on the tank first.

Setdamage doesn't work.

Share this post


Link to post
Share on other sites

A workaround has been found: Move the tank over the sea first.

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

_posM1 = getPos m1

m1 setPos [0, 0, 100]

~0.01

_posM1 set [2, 100]

m1 setPos _posM1

m1 setVelocity [0, 10, 0]

Share this post


Link to post
Share on other sites

the workaround (found by me and salisan together) work as long as the tank does not stop after moving it back to the original position over ground, i.e. if the tank comes to a halt on ground after it is repositioned then setPos and setVelocity stops to 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  

×