Jump to content
Sign in to follow this  
Absolution_15th

Infinite Ammo for AI?

Recommended Posts

Problem:

I build cooperative missions for my realism unit. I'll place some D-30 batteries down to give my unit some hell but they run out of ammo so fast and then my guys just run up and pop the gunner.

Solution:

Is there a script or other mechanism built into the editor to constantly resupply the ammo or simply make it infinite?

Not exactly "real" but sometimes you have to break a few eggs to get the omelet you're looking for.

Share this post


Link to post
Share on other sites
Problem:

I build cooperative missions for my realism unit. I'll place some D-30 batteries down to give my unit some hell but they run out of ammo so fast and then my guys just run up and pop the gunner.

Solution:

Is there a script or other mechanism built into the editor to constantly resupply the ammo or simply make it infinite?

Not exactly "real" but sometimes you have to break a few eggs to get the omelet you're looking for.

Put this into the int of the unit. should work.

this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}]

Share this post


Link to post
Share on other sites

I was looking for something just like this for some artillery placed well back of the main battle.

The script worked like a charm, thanks rowdied!

Share this post


Link to post
Share on other sites

A question to this thread, I want some mortars to not run out of ammo, so I tryed this one

Put this into the int of the unit. should work.

this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}]

But when the AI is firing there is no explotion, they just fires up in the air when I ask them to fire on a positon, But nothing is comming down?, why is that. the explotion only works when player is using it.:S, why?

NEVER MIND!, FOUND OUT THAT SYNCHING THE ARTY MODUL REMOVES IMPACTED ON GRENADES/ MORTAR ROUNDS :s

Edited by Morten87
Found out my self

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  

×