Hello! im trying to make a script that spawns 1-3 helicopters on a random location on a map and they starts to patroling.
what i have so far is this :
_vehicle = createVehicle [ "B_Heli_Light_01_F", player getPos[ 100, getDir player ], [], 0, "FLY" ]; createVehicleCrew _vehicle;
this is spawning it in the air but i cant seem to find anything that makes it spawn random, this makes it spawn over the player head. i know that BIS_fnc_randomPos exists but cant seem to get it to work.
i also need the script to add " [group _unit, getPos _unit, 1000] call BIS_fnc_taskPatrol; " to the helicopters init field to make it start patroling.
and maybe if we are pushing it, maybe having to loiter a little around each waypoint
i feel like i got almost all the pieces to the puzzle but have lost my glasses so i cant put it together...
i hope you guys can help.