Jump to content
BlackbirdSD

How to have AI start at the same "Random start position" as another object?

Recommended Posts

3 minutes ago, BlackbirdSD said:

I thought of that before but never could figure it out.

Thanks

Could this help?

guardGroup= [getPos weaponBox, EAST, (configfile >> "CfgGroups" >> "East" >> "OPF_G_F" >> "Infantry" >> "O_G_InfSquad_Assault")] call BIS_fnc_spawnGroup; 
wp1 = guardGroup addWaypoint [getPos weaponBox, 0];  
    wp1 setWaypointType "GUARD";   
    wp1 setWaypointSpeed "FULL";  
    wp1 setWaypointBehaviour "AWARE";  
    wp1 setWaypointFormation "DIAMOND";
	
guardGroup= [getPos weaponBox2, EAST, (configfile >> "CfgGroups" >> "East" >> "OPF_G_F" >> "Infantry" >> "O_G_InfSquad_Assault")] call BIS_fnc_spawnGroup; 
wp1 = guardGroup addWaypoint [getPos weaponBox2, 0];  
    wp1 setWaypointType "GUARD";   
    wp1 setWaypointSpeed "FULL";  
    wp1 setWaypointBehaviour "AWARE";  
    wp1 setWaypointFormation "DIAMOND";

guardGroup= [getPos weaponBox3, EAST, (configfile >> "CfgGroups" >> "East" >> "OPF_G_F" >> "Infantry" >> "O_G_InfSquad_Assault")] call BIS_fnc_spawnGroup; 
wp1 = guardGroup addWaypoint [getPos weaponBox3, 0];  
    wp1 setWaypointType "GUARD";   
    wp1 setWaypointSpeed "FULL";  
    wp1 setWaypointBehaviour "AWARE";  
    wp1 setWaypointFormation "DIAMOND";	

In one of my mission, a trigger detect the player near "weaponBox" and spawn a group of guards....

I can't help ya more than this bud!

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

×