OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: imemyself on 27 Jan 2003, 00:03:49
-
Hello, I'm trying to make a script that will allow a vehicle to be 'paradropped'.
;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.
-
try dat code ;D
#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
-
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.
-
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
-
Thanks a bunch! :)