How to make an ammo only usable in turrets?

Place to get help with not working mods / modding interface.
User avatar
Reika
Filter Inserter
Filter Inserter
Posts: 587
Joined: Tue May 19, 2015 1:56 am
Contact:

How to make an ammo only usable in turrets?

Post by Reika »

As per the title. I would like to make EndgameCombat's ammo crates only work in turrets, not in the player inventory. Is this possible?
Image
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: How to make an ammo only usable in turrets?

Post by Adil »

Each shooting thing (turret,gun,vehicle-turret) has ammo category. It can use ammo of that category only. If you make your ammo into another category that is not "bullet", "shotgun-shell", "rocket", "liquid-ammo" (I believe), the player will not be able to use that in his guns.
If you want special ammo for gun-turrets, I guess you will have to track all the players and pull your exclusive ammo from their guns.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
User avatar
Reika
Filter Inserter
Filter Inserter
Posts: 587
Joined: Tue May 19, 2015 1:56 am
Contact:

Re: How to make an ammo only usable in turrets?

Post by Reika »

Adil wrote:Each shooting thing (turret,gun,vehicle-turret) has ammo category. It can use ammo of that category only. If you make your ammo into another category that is not "bullet", "shotgun-shell", "rocket", "liquid-ammo" (I believe), the player will not be able to use that in his guns.
If you want special ammo for gun-turrets, I guess you will have to track all the players and pull your exclusive ammo from their guns.
The problem is that I still want normal ammo to work in turrets as well, meaning turrets would need to have multiple categories, like assemblers can.
Image
Post Reply

Return to “Modding help”