05-09-2016, 04:25 PM
Hello,
Any help would be great here... trying to get a chopper to spawn in at bottom left of map and fly to destination keeping its height at 40.
However, using the code below, the chopper spawns in as expected, moves to the waypoints as expected, however it slowly increases its height along the way, and by the time its at the destination its too high to even be seen!
this is the code I am using (I have tried a few variations, and hoping now its just something wrong or missing):
Any help would be great here... trying to get a chopper to spawn in at bottom left of map and fly to destination keeping its height at 40.
However, using the code below, the chopper spawns in as expected, moves to the waypoints as expected, however it slowly increases its height along the way, and by the time its at the destination its too high to even be seen!
this is the code I am using (I have tried a few variations, and hoping now its just something wrong or missing):
Code:
_airSup1Array = [[100,100], 45, "O_Heli_Attack_02_F", _groupp1] call Bis_fnc_spawnvehicle;
airSup1 = _airSup1Array select 0;
airSup1 flyInHeight 40;
_v1wp1 =_groupp1 addWaypoint [[110,110], 0];
[_groupp1, 0] setWaypointStatements ["true", "airSup1 flyInHeight 40;"];
[_groupp1, 0] setWaypointSpeed "FULL";
[_groupp1, 0] setWaypointBehaviour "COMBAT";
   Â
_v1wp2 =_groupp1 addWaypoint [getMarkerPos "mrkFirstLocation", 0];
[_groupp1, 1] setWaypointType "LOITER";
[_groupp1, 1] setWaypointLoiterType "CIRCLE";