Search the Community
Showing results for tags 'ai aircrew'.
Found 1 result
-
Help needed spawning an aircraft that patrols an area
DoobieDoobieDoo posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi First of all, thanks to Something Something Games! I am a scripting noob. I spent many months getting simple things to work, and built a couple of mp scenarios, but have had some difficulty with ai aircrew. For more than one iteration of an event, I am using a trigger to spawn vehicles. I can get one aircaft, with pilot, that spawns, but then turns and flies in a straight line to map coords 0000 I can make it produce two pairs, four separate ones, but they all do the same thing. It is supposed to spawn an aircraft when triggered and the aircrew are supposed to then patrol around a marker. Can anyone explain where I am going wrong? My guess is I lack understanding of the link between the spawned group (plane + pilot) and the pilot. Line 5 is the issue, which I have put in bold for clarity ( not in the trigger!). I need to instruct something to patrol that area (around m1, an object name), I keep getting lots of waypoint creation errors when i run it, or undeclared variables. Is there another scripting function that I should use instead of BIS_fnc_taskPatrol ? 0= [] spawn { _spawnLocation = [m1, 1000, (RANDOM 360)] call BIS_fnc_relPos; _airCraft = [_spawnLocation, 180, "O_Plane_Fighter_02_F", ] call BIS_fnc_spawnvehicle; _planePilot = _airCraft select 0; ??? [group _planePilot, getPos m1, 1000] call BIS_fnc_taskPatrol; }; Any help appreciated!- 11 replies
-
- ai aircrew
- bis_fnc_spawnvehicle
-
(and 1 more)
Tagged with: