Home   Help Search Login Register  

Author Topic: PLEASE HELP!  (Read 649 times)

0 Members and 1 Guest are viewing this topic.

imemyself

  • Guest
PLEASE HELP!
« on: 27 Jan 2003, 00:03:49 »
Hello, I'm trying to make a script that will allow a vehicle to be 'paradropped'.

Code: [Select]
;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

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.  

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:PLEASE HELP!
« Reply #1 on: 27 Jan 2003, 00:57:33 »
try dat code ;D

Code: [Select]
#PDr
bmd setpos [getpos chute select 0,getpos chute select 1,(getpos chute select 2)-4]
~0.1
?  getpos chute select 2 >1: goto "PDr"

deletevehicle chute
exit

LCD OUT

"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

imemyself

  • Guest
Re:PLEASE HELP!
« Reply #2 on: 27 Jan 2003, 02:37:05 »
Thanks a lot! :)  ;)  One more question: when a plane is over a certain spot I have it camcreate the bmd and chute have it then execute the script, byt when the BMD is on the ground, there isn't any Get in BMD as x on the action menu.  I can still get in by using y moveincargo bmd though.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:PLEASE HELP!
« Reply #3 on: 27 Jan 2003, 03:40:00 »
just use da createvehicle command and not camcreate :P

bmd = "type" createvehicle getpos thing ;D

and rexec da script ;)

and da vehicle wil b good den ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

imemyself

  • Guest
Re:PLEASE HELP!
« Reply #4 on: 27 Jan 2003, 05:24:43 »
Thanks a bunch!  :)