Creating a type?
Creating a type?
Is there any way to make a new entity type? I'm trying to make a new power system and I would prefer being able to set a entity's power settings in the entity.lua document, rather than a bunch of local variables in control.lua
Re: Creating a type?
No, all entity types are hard coded C++ classes in the game's engine.
You can do what I did for modded energy sources: an accumulator with a 0 input value and a large capacity. Set entity.energy and it "produces" power.
You can do what I did for modded energy sources: an accumulator with a 0 input value and a large capacity. Set entity.energy and it "produces" power.
If you want to get ahold of me I'm almost always on Discord.