Jump to content
Sign in to follow this  
edc

Please help!

Recommended Posts

Hello, I'm trying to make a script that will allow a vehicle to be 'paradropped'.

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

;Vehicle Paradrop

;

hint "Start";

goto PDr;

#PDr

hint "Drop";

pos1=getpos chute select 0;

pos2=getpos chute select 1;

pos3=getpos chute select 2;

bmd setpos[pos1,pos2,pos3];

goto PDr;

;?pos3<1:goto Land;

;Land

;#Land;

;hint "Land";

;posA=getpos chute select 0;

;posB=getpos chute select 1;

;bmd setpos[posA,posB,0];

;exit

<span id='postcolor'>

THe stuff near the bottom is commented out because I'm just trying to concentrate on fixing the first part now. I'm having 2 problems, first the height getpos for the chute isn't working. I know that it is the height getpos because it always went to the landing part of the script(it goes to the landing part when the chute is 1 meter above the ground. Secondly it is not repeating like I want it to, it moves the BMD to the spot below the parachute and it doesn't move after the parachute moves to the right/left.

Share this post


Link to post
Share on other sites

What is chute object ? be sure that jour object have 3 dimensionnal position like a soldier but not like an trigger or marker.

;Vehicle Paradrop

;

#PDr

bmd setpos getpos chute

?pos3<1:goto Land

~1

goto "PDr"

;Land

#Land;

Share this post


Link to post
Share on other sites

Thanks for your reply, even though I already got it to work(from a post on OFPEC). Chute is a parachute.

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  

×