OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 08 Jul 2005, 12:57:06
-
how can i get the height (roughly) of the chopper to the ground below it i tried something like
_heightchop = this select 2
? _heightchop <= 10 : goto "next"
#next
? alive unit1 : unit1 assignascargo blackhawk
im having trouble with getting units to bopard in the chopper there commander tells them to bord but half the squad just stands outside saying 'Negative' and wont get in for somereason there penty room for them to fit they can easily get to it but just dont want to so i thought assighning them to the chopper
if theres an easyier way i would love to hear it
NOTE - that code just a very rough idea cause im at school and cant rint exactly what i put but thats close enough to what i can remember
-
The loop's no good - whether _heightchop is greater or smaller than 10 the script will still get to #next. Try this and look up the differences:
#loop
~5
_heightchop = (GetPos mychopper) select 2
?(_heightchop > 10): goto "loop"
?(alive unit1): unit1 assignascargo blackhawk; [unit1] OrderGetIn true
exit
If it's AI boarding the chopper you may need to have another look at your waypoints and synchronisations before going too far down the script route.