Page 1 of 1

create a demolisher entity with quality

Posted: Thu Nov 21, 2024 4:46 am
by zanven
currently when making a new demolisher entity via create_entity the quality parameter is not valid for that type of entity.

i haven't figured out if i can yet make a demolisher for a territory yet, im guessing possibly not.

My goal is to be able to analysis the spawned demolisher for a territory and replace it with another one that has modified quality.

im guessing if the demolisher prototype exposes an ID for its assigned territory and quality is a valid param for that entity type, we can dynamically create extra demolishers or replace existing ones with higher quality if you "create before delete" so the territory doesn't unlock.

Re: create a demolisher entity with quality

Posted: Tue Jul 22, 2025 3:16 pm
by StrangePan
Quickly checked that it is indeed possible to create demolishers with varying levels of qualities, both in the editor and via LuaSurface::create_entity. Now in 2.0.61, there is a full API for reading and controlling demolishers and their territories.