Jump to content
Sign in to follow this  
Zeddy

Problem with creating MG nests that fire constantly.

Recommended Posts

Hi all

I've put down some MG nests in the editor and put this in their init line:

nul = this spawn { while {alive _this} do { _this doWatch [(markerpos "arc1" select 0)+(random 50), (markerpos "arc1" select 1), (markerpos "arc1" select 2) ]; _this fire "PKT_MG_Nest"; sleep 0.2 } }; nul = this spawn { while {alive _this} do {_this addMagazine "100Rnd_762x54_PK"; sleep 30 } };

I plop marker "arc1" down in editor, put the script in a PK MG nest and they hammer away happily. I can go away for 10 minutes, come back, and they're still firing. However when I do it on a server, they fire maybe a mag or two then just stop. I killed one of them and climbed in to check the ammo. Ammo is definitely being loaded up, so they're not running out of ammo. It's almost as if they're forgetting how to reload their weapons after a while.

Any idea what's going on? And more importantly, any advice to make them behave on server as they are doing in the editor?

Edit: I have accelerated time in the editor and checked the above is correct. They have now run for 30 minutes of non stop firing. This does not happen on server. :(

Edited by Zeddy

Share this post


Link to post
Share on other sites

I also note that on the server, after killing a MG gunner who is no longer firing and getting into the MG nest, I am hitting "Reload PKM Mag." to reload to keep firing. Not sure if it's related.:j:

Share this post


Link to post
Share on other sites

is it to do wit hthe difference between "this" and "_this"?

Share this post


Link to post
Share on other sites

That's the thing that bugs me. If it was that, wouldn't the MG nests fail to fire? This isn't the case. At the moment I believe it might be that they fire until the original ammo is depleted, then they fail to reload the next manually added magazine.

Share this post


Link to post
Share on other sites

This doesn't seem to be the problem. Apparently it's ACE related:

http://dev-heaven.net/issues/7366

From that page:

Cumbersome workaround

- additional muzzle for AI (muzzles[]={this,"xxxAI"}), though engine wise fixing it would work much better

Anyone know anything about this?

Share this post


Link to post
Share on other sites

Just FYI - I ended up avoiding the reload issue entirely by using setvehicleammo.

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  

×