Coladebote 46 Posted December 30, 2019 Hello guys: I am working, creating on the map Staszow, Poland 1944 a CTI. German army against Soviet forces. In each town there is a garrison of the red army that watches over it. When German forces attack that enclave. The Soviets ask for help on the radio and, within a few minutes, two IL2 planes appear. if (!isServer) exitWith {}; //_crew1A1 = []; //_airframe1 = []; //if (isServer) then { _crew1A1 = creategroup EAST; _airframe1 = [getMarkerPos "marker_1A1", 45, "sab_il2", _crew1A1] call BIS_fnc_spawnVehicle; _pos = getMarkerPos "marker_1A1"; _pos set[ 2, 150 ]; sleep 10; _airframe2 = [getMarkerPos "marker_1A1", 45, "sab_il2", _crew1A1] call BIS_fnc_spawnVehicle; _pos = getMarkerPos "marker_1A1"; _pos set[ 2, 150 ]; _wp1A1 = _crew1A1 addWaypoint [(getmarkerpos "WP_1A1"), 1]; _wp1A1 setWaypointType "MOVE"; _wp1A1 setWaypointSpeed "FULL"; _wp1A1 setWaypointBehaviour "AWARE"; _wp2A1 = _crew1A1 addWaypoint [(getmarkerpos "WP_2A1"), 2]; _wp2A1 setWaypointType "SAD"; _wp2A1 setWaypointSpeed "LIMITED"; _wp2A1 setWaypointBehaviour "COMBAT"; }; This is the little script that handles air strikes. I publish it in case anyone is interested. It's nothing otherworldly, I know, it's very simple, but it works. It fulfills its role. Three empty markers are used: 1.- marker_1A1 where the planes appear. 2.- WP_1A1 First waypoint (MOVE) 3.- WP_2A1 Second waypoint. Attack Point (SAD) It's very easy, but if someone wants the demo mission, I can send it to them. Happy new year, guys. 1 1 Share this post Link to post Share on other sites
pierremgi 4738 Posted December 30, 2019 Nice. Just avoid naming _crew1A1 a group. It's not an error. Use something like _grp1A1 instead. Because one day, you'll mix group (a group) and crew (an array) in a longer script, and you could spend some times for understanding what you tried to do before. 1 1 Share this post Link to post Share on other sites
Coladebote 46 Posted December 30, 2019 I appreciate your clarification, I will implement it in the script. Thanks Pierre. Share this post Link to post Share on other sites
Coladebote 46 Posted December 30, 2019 With Pierre's suggestion, the script is as follows: if (!isServer) exitWith {}; //_grp1A1 = []; //_airframe1 = []; //if (isServer) then { _grp1A1 = creategroup EAST; _airframe1 = [getMarkerPos "marker_1A1", 45, "sab_il2", _grp1A1] call BIS_fnc_spawnVehicle; _pos = getMarkerPos "marker_1A1"; _pos set[ 2, 150 ]; sleep 10; _airframe2 = [getMarkerPos "marker_1A1", 45, "sab_il2", _grp1A1] call BIS_fnc_spawnVehicle; _pos = getMarkerPos "marker_1A1"; _pos set[ 2, 150 ]; _wp1A1 = _grp1A1 addWaypoint [(getmarkerpos "WP_1A1"), 1]; _wp1A1 setWaypointType "MOVE"; _wp1A1 setWaypointSpeed "FULL"; _wp1A1 setWaypointBehaviour "AWARE"; _wp2A1 = _grp1A1 addWaypoint [(getmarkerpos "WP_2A1"), 2]; _wp2A1 setWaypointType "SAD"; _wp2A1 setWaypointSpeed "LIMITED"; _wp2A1 setWaypointBehaviour "COMBAT"; }; Greetings from Spain and happy new year 2 Share this post Link to post Share on other sites
pierremgi 4738 Posted December 30, 2019 Happy new year to you also. Share this post Link to post Share on other sites