Forum Jump :

Author Message


Posts: 36
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2018-02-21 15:36        
     
Hello, I'm making a mission where I need AI to assault a building, but all the do is run a few paces then lie down, I've tried using things like: _grp enableAttack false;
{

_x disableAI "AUTOCOMBAT";
_x disableAI "TARGET";
_x disableAI "AUTOTARGET";
_x disableAI "SUPPRESSION";
_x disableAI "COVER";
_x setBehaviour "AWARE";
_x setSpeedMode "FULL";
_x doFollow leader _grp;


} forEach units _grp;

Does anyone know a way to make them charge ?


Author Message


Posts: 1513
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2018-02-22 00:35        
     
Yes it sucks that there's no direct charge mode, what I've done in the past is this.

In a waypoint before the charge I set them to "careless" and "fullspeed", the problem is they ignore the speed command and insist on walking.

What I then do is in the waypoints On Act is to use domove which seems to force the "fullspeed" command

 {_x domove (waypointPosition [group this, currentwaypoint group this +1])} foreach units (group this);

They should now just run to the next waypoint in "careless" mode however this being Arma there is no guarantee that it will work for your situation.


Advertisement


Author Message


Posts: 36
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2018-02-22 17:28        
     
So would it be possible to not put anything in the group init and just put that in the waypoint act ?


Author Message


Posts: 89
Rank:


Level: Member

Country: in
Location:
Occupation:
Age:
In-game name:

 
#4 Posted at 2018-02-22 21:57        
     
You should add {_x setunitpos "UP"} foreach units _grp; to keep AI in standing mode.


Author Message


Posts: 1513
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#5 Posted at 2018-02-23 00:16        
     
# chriskvark : So would it be possible to not put anything in the group init and just put that in the waypoint act ?

Yes that's all I used.


Author Message


Posts: 36
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#6 Posted at 2018-02-23 15:15        
     
Ok, used it and it works but they take about 15 paces then pause, then continue running. The AI is pretty bad in this game haha, thanks though !