IRONFRONT FANS FORUM
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
scottdog

Corporal
Registered:
Posts: 68
Reply with quote  #1 

I'm trying to make a mission, and I need to know a few things.

I put a tank in a group with infantry, and i dont want the ai to board the back.

One more thing I want the ai to do is to charge(like they did in ofp),untill they get to a waypoint, and not do the cover and fire that they ussually do. 

0
Tayuk

Avatar / Picture

RM Team
Registered:
Posts: 456
Reply with quote  #2 
There is this video to show you hopefully how to get the men to charge, good luck.

0
Gunter Severloh

Avatar / Picture

Admin
Registered:
Posts: 2,765
Reply with quote  #3 
In chat the other day for charging you can use a waypoint set to careless if that may work idk.
For your other question, you may be able to prevent the AI from getting on the back of the tank if you set their mode to danger, or something else, idk what your setup is in your mission.

__________________
0
scottdog

Corporal
Registered:
Posts: 68
Reply with quote  #4 

yeah thanks tayuk, that worked.

Yeah il try that Gunter.

0
sander

Corporal
Registered:
Posts: 47
Reply with quote  #5 
Regardless of the necropost nature of the reply it might still be useful to put in my €0.02 for others interested in mission editing.

The trick to avoid AI infantry that is grouped with an armoured vehicle boarding said vehicle in the back is to put the following in the init line of the vehicle:

this lockcargo true;

tank1 lockcargo true;

Should it be desirable to have them board at a later stage the effect of the above statement can be undone by the following:

this lockcargo false;

tank1 lockcargo false;


AI in danger mode can be notoriously reluctant to advance in anything exceeding tortoise speed in Arma II and its derivatives. However it is possible to limit their tardiness to some extent by forcing the units in question to adopt a certain stance. One can for example set their position to "UP" to prevent them from forever going prone and then remaining stationary. This can be accomplished by statements such as the following:

this setunitpos "UP";

soldier1 setunitpos "UP";

{_x setUnitPos "UP"} forEach units group infantrysquad1;

As units going prone might be desirable in other portions of the assigned route for the AI one might wish to return the AI to their default behaviour by setting their stance again in another waypoint, eg by statements such as these:

this setunitpos "AUTO"

soldier1 setunitpos "AUTO"

{_x setUnitPos "AUTO"} forEach units group infantrysquad1;


BIS Wiki:

lockCargo
setUnitPos

Regards,

Sander
0
Chief

Sergeant
Registered:
Posts: 115
Reply with quote  #6 
Thanks for sharing Sander.
0
Joe98

Avatar / Picture

Captain
Registered:
Posts: 196
Reply with quote  #7 
"Lockcargo"     I had no idea that command exists!  Thank you!  This will be very useful!

.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.