[Resolved] "Kills" Question

Place to get help with not working mods / modding interface.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

[Resolved] "Kills" Question

Post by TheSAguy »

Hi,

The Turret and Worms have a "Kills" counter. I was wondering if the Biters have something similar?
Does anyone know and if they do, how can I read that value?

Thanks.
Last edited by TheSAguy on Sat Jul 08, 2017 5:55 pm, edited 1 time in total.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: "Kills" Question

Post by darkfrei »

http://lua-api.factorio.com/latest/LuaE ... tity.kills

kills :: uint [Read-Write]
The number of units killed by this turret.

Can only be used if this is Turret
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: "Kills" Question

Post by TheSAguy »

Thanks Darkfrei,
Too bad it's on Turret only and not unit. :(
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: "Kills" Question

Post by darkfrei »

TheSAguy wrote:Thanks Darkfrei,
Too bad it's on Turret only and not unit. :(
Not only turrets, trains too.
Post Reply

Return to “Modding help”