Jump to content
Sign in to follow this  
strike0277

AI Spawn then search and destroy

Recommended Posts

I'm looking for a script that allows me to put in a trigger to spawn opfor units in OA that go into search and destroy mode. I've been looking for one, but can't find it. Any Ideas guys? Thanks

Share this post


Link to post
Share on other sites

I have a script ( WHICH ISNT MINE ) which spawns two A-10s to SAD

your welcome to play with that and see if you can modify it for your use

_BluforHQ = createCenter west;
_GroupCAS = CreateGroup West;

_veh1 = createVehicle ["A10_US_EP1", [(getpos player) select 0,(getpos player) select 1, 350], [], 3000, "FLY"];
_Pilot1 = _GroupCAS createUnit ["US_Pilot_Light_EP1", [0,0,1], [], 0, "CAN_COLLIDE"];
_pilot1 moveInDriver _veh1;
_veh1 FlyInHeight 350;

_veh2 = createVehicle ["A10_US_EP1", [(getpos _veh1) select 0,(getpos _veh1) select 1, 360], [], 50, "FLY"];
_Pilot2 = _GroupCAS createUnit ["US_Pilot_Light_EP1", [0,0,1], [], 0, "CAN_COLLIDE"];
_pilot2 moveInDriver _veh2;

{_x setSkill 1; _x setrank "CAPTAIN"} foreach units _GroupCAS;

_wp1 = _GroupCAS addwaypoint [position player, 0];
_wp1 setwaypointtype "SAD";
_wp1 setWaypointCompletionRadius 100;
_wp1 setWaypointSpeed "FULL";
_wp1 setWaypointBehaviour "COMBAT";

I wouldnt be able to do it but you might : )

hope this helps, atleast alittle

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×