Page 1 of 1

LuaEntity.deplete()

Posted: Fri Apr 03, 2020 11:30 pm
by Mylon
tl;dr: Similar to LuaEntity.destroy() (for finite resources), but also raises the on_resource_depleted event for the marked entity.

Use case: Nougat Mining turns ore in the ground to items on the ground marked for pickup. Currently I call raise_event if the ore runs out. With this, I wouldn't have to.

Re: LuaEntity.deplete()

Posted: Mon Apr 20, 2020 3:12 am
by Rseding91
Ok.

Re: LuaEntity.deplete()

Posted: Mon Apr 20, 2020 9:41 pm
by Mylon
Thanks!