Modifying ammo count

Place to get help with not working mods / modding interface.
Post Reply
Degraine
Filter Inserter
Filter Inserter
Posts: 281
Joined: Wed Aug 13, 2014 10:49 am
Contact:

Modifying ammo count

Post by Degraine »

Is there a method to access the remaining count of ammo in an itemstack, and modify it?

Kexík
Long Handed Inserter
Long Handed Inserter
Posts: 71
Joined: Mon Dec 01, 2014 12:52 pm
Contact:

Re: Modifying ammo count

Post by Kexík »

You can get into inventory, and there add/remove items.

Degraine
Filter Inserter
Filter Inserter
Posts: 281
Joined: Wed Aug 13, 2014 10:49 am
Contact:

Re: Modifying ammo count

Post by Degraine »

That's not quite what I meant. You can stack up ammo items, yes, but the stack also keeps track of how many rounds are left before it should remove one of the ammo items. It's that count that I want to access.

Rahjital
Filter Inserter
Filter Inserter
Posts: 435
Joined: Thu May 29, 2014 10:44 am
Contact:

Re: Modifying ammo count

Post by Rahjital »

Commands for that were added in 0.11, so it's a rather new feature and most likely undocumented yet. You'll most likely have to ask the devs.

Degraine
Filter Inserter
Filter Inserter
Posts: 281
Joined: Wed Aug 13, 2014 10:49 am
Contact:

Re: Modifying ammo count

Post by Degraine »

Okay. Well, I'll go pick their brains in IRC once I'm back home.

Post Reply

Return to “Modding help”