Jump to content
Sign in to follow this  
Nightjay0044

Rearming AI units

Recommended Posts

Hi, heres it what I have.

A sniper with the name of "sniper1". How can I create an ammo box for him to rearm himself whenever he needs to? Thanks..

Share this post


Link to post
Share on other sites

Is there no already an ammo crate in the editor from which the sniper can be rearmed?

Share this post


Link to post
Share on other sites

yes, i can create an ammo box, but will the AI sniper automaticlly rearm at the ammo box when he's out of ammo without putting any certain code in to get to recognize it to rearm?

Share this post


Link to post
Share on other sites

Okay maybe somehow you need to use the Rearm action. but how do you make it so that the enemy AI sniper detects that he is out of ammo and then rearm at a specific ammo crate?

Share this post


Link to post
Share on other sites

Chris's scripting editor comes with a nice rearm script. If you dont have it I can send to you, but I'll need an email address...

Share this post


Link to post
Share on other sites

Alright, yeah I found the script it's called Rearmeast.sqs

Okay I have one east sniper named: sniper1..how do I get him to rearm to the ammo box with the script?

Share this post


Link to post
Share on other sites

The script just automatically replaces the magazines when the unit runs out. You have to put the right names for the magazines in the 2 triggers that are used to fire the script.

The rearm.sqs file has step by step instructions inside it.

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  

×