OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Darren Fletcher on 29 Oct 2004, 21:45:16
-
ok chaps im having some problems with helis
i have a mi17 with the men onboard no problems and have 3 move waypoints the second waypoint runs the parascript.sqs line
_aunits = units para1
_i=0
_max=count _aunits
#here
(_aunits select _i) action ["eject",h1]
unassignvehicle (_aunits select _i)
_i=_i+1
~2
?_max>_i:goto "here"
Exit
this is the script above
now on to the problem when the helo gets to the 2nd waypoint it just orbits and never drops the men out, i have the flying hight=130 set right at the start on the init section of the chopper so i know the chopper is at the right hight.
i found a turtorial showing how this works and it does if the enemy are not there but as the para drop is into the war zone the helo sees the battle and does not drop. but the helo is set on careless so im not sure why.
now i can get it to work every time is the waypoint with the script is the last one ie remove the last move waypoint so im looking for some links to help areas or some help in running this.
I have tryed the demo one and that works but if i place a enemy there and shoot at the helo that also fails to drop out the men so i belive its a script problem.
looking forward to some help
Darren Fletcher
-
What if you set the Helo to "never fire"?
-
:wave:
http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=18100;start=0
-
the helo is on never fire but will try the hight as 100 and see what happens thanks for the fast responds, will get back to you.
Darren Fletcher
-
It works!!!
thanks very much i spent about 2 hours trying differnt things to fix this.
Is 100 the max hight you can use AI flown helo's then to make sure that they hit the waypoints?
Fletch
-
Well, it seems not with regular waypoints..
Here is some more reading for you about the subject and a script that allows you to move your chopper over 100 meters high.
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=16591;start=0