Jump to content
Sign in to follow this  
xALIENAx

How to Fix odd Behavior of AI

Recommended Posts

Heres the Situation... I'm creating a SP mission where in I have the player as the leader of a Mechanized assault into a town. In this town I have placed several Roof top RPG soldiers. Heres my problem, As soon as they detect the BLUFOR humvees they go prone on the roof and "hide".

At first I thought this Was because they By default have thier SMG/AR equipped, I tried to fix this by using SelectWeapon to make them have thier RPG out, Still nothing.

Then i thought Maybe it was a skill issue, Ive tried playing with the Skill settings in the editor, nothing.

Ultimately if i Put the RPG soldier in the middle of the road with his RPG out he shoot it at the humvee every single time, Regardless of skill. If i put him on or in a building, he hides. :confused::confused:

Share this post


Link to post
Share on other sites

you can try using setUnitPos.

place this in init of rooftop rpg AI:

this setUnitPos "Middle";

you can also use "UP" to force standing, and use "AUTO" to resume automatic choise.

Share this post


Link to post
Share on other sites

Just tried it and get Varying Results.

Run 1:

He attempted to move back down the stairs into the building and got stuck

Run 2:

Still at max skill settings, He fire the RPG some what randomly in the general direction of blue forces but seemed to be unable to aim as a specific target. (I even made it easier for him by stopping and inching up and stopping till i was within about 50m of the building when he fired) then he attempted to run away falling off the roof in the process. (much like when you helo drop AI group onto a roof without the Stop command.)

Run 3:

He went down the stairs again but did not get stuck this time.. No Rocket fired.

Share this post


Link to post
Share on other sites

AI find it difficult to target things above or below them sometimes. Until it was fixed in a patch, they used to be completely unable to do it.

this disableai "move" will stop him from going down the stairs.

Are you using doTarget?

Also be careful where you place the AI - if they are behind a window, they cannot see through the glass.

Edited by 2nd Ranger

Share this post


Link to post
Share on other sites

He's Ontop of a roof.

Also I can't Use a Target Command as they're multiple Vehicles and it's MP, Theres no way to ensure they will come in a certain order or that all vehicles will be used.

I guess Arma's AI is just really un predictable. Some times they amaze me, other times They seem to stupid to figure out the simplest things.

Share this post


Link to post
Share on other sites

you can try and place triggers wich covers areas the rpg gunner has clear line of fire to from his rooftop position.

lets say a street T section is in clear line of fire, create a trigger(does not have to be circular) covering clear line of fire area.

set it to enemy side detected by rpg guy side, repeated.

then in on act of trigger run the dotarget, dofire code if the rpg gunner is still alive and have ammo.

Drawback is that you have to do this manually for each rpg gunner, but using copy paste should make it work ok fast.

You can have multiple triggers in various places for same guy, just have to keep track of it all.

Its not impossible to do, just a little work.

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  

×