Springfield86 2 Posted May 1, 2021 Good Morning & Hello from bella Italia, first this Forum is great and already helped me a lot. So, thank you all! Im trying to make my first scenario in EDEN and damn, this Editor is stunning! Had no idea that its that good & complex. I stumbled upon this Topic linked below, it describes exactly what i am looking for. I have a Huron flying supplies towards the player - i would like to have this heli shot down on its way. The "aggressors" shld then be hunted by the Player(s). They mention a script for spawning them in, but ofc the download leads nowhere. And this Topic leads to a 20+ rows of code i have no idea where to put to, so maybe someone has a simpler more elegant way to spawn in jet that shoot at a target. thanks in advance This is the best i could figure out atm - but the jet spawns into the ground with 500kmh _grp = createGroup East; _wp = _grp addWaypoint [getPos Armor1, 0]; [_grp, 0] setWaypointType "SAD"; [_grp, 0] setWaypointCompletionRadius 200; { O_Plane_CAS_02_dynamicLoadout_F = "O_Plane_CAS_02_dynamicLoadout_F" createVehicle [(getMarkerPos "PlaneSpawn" select 0), (getMarkerPos "PlaneSpawn" select 1,250), 250]; O_Plane_CAS_02_dynamicLoadout_F setPos [(getPos O_Plane_CAS_02_dynamicLoadout_F select 0) + (_x * 40), getPos O_Plane_CAS_02_dynamicLoadout_F select 1, 250]; O_Plane_CAS_02_dynamicLoadout_F engineOn true; O_Plane_CAS_02_dynamicLoadout_F setDir 290; _dir = 290; _speed = 500; O_Plane_CAS_02_dynamicLoadout_F setVelocity [(sin _dir * _speed),(cos _dir * _speed), 0]; "O_Fighter_Pilot_F" createUnit [getMarkerPos "PlaneSpawn", _grp]; (units _grp select _x) moveInDriver O_Plane_CAS_02_dynamicLoadout_F; (units _grp select _x) setSkill 1; (units _grp select _x) flyInHeight 250; }; Share this post Link to post Share on other sites
pierremgi 4743 Posted May 1, 2021 😂 Just: private _plane = createVehicle ["O_Plane_CAS_02_dynamicLoadout_F",markerPos "PlaneSpawn",[],0, "fly"]; _plane setDir 290; private _grp = createVehicleCrew _plane; _plane setVelocityModelSpace [0,150,0]; private _pilot = currentPilot _plane; _pilot setSkill 1; _pilot reveal [armor1,4]; _plane flyInHeightASL [500, 500, 500]; _wp = _grp addWaypoint [getPos Armor1, 0]; [_grp, 0] setWaypointType "SAD"; Nothing more required. Don't fly too low! Some commands: createVehicle (alternative syntax)createVehicleCrewsetVelocityModelSpacecurrentPilotrevealflyInHeightASL Share this post Link to post Share on other sites
Springfield86 2 Posted May 2, 2021 9 hours ago, pierremgi said: 😂 Just: private _plane = createVehicle ["O_Plane_CAS_02_dynamicLoadout_F",markerPos "PlaneSpawn",[],0, "fly"]; _plane setDir 290; private _grp = createVehicleCrew _plane; _plane setVelocityModelSpace [0,150,0]; private _pilot = currentPilot _plane; _pilot setSkill 1; _pilot reveal [armor1,4]; _plane flyInHeightASL [500, 500, 500]; _wp = _grp addWaypoint [getPos Armor1, 0]; [_grp, 0] setWaypointType "SAD"; Nothing more required. Don't fly too low! Some commands: createVehicle (alternative syntax)createVehicleCrewsetVelocityModelSpacecurrentPilotrevealflyInHeightASL 😍 ill give it a try, thanks my friend - may the pizza be with you 1 Share this post Link to post Share on other sites