Reverse Tower Defense


Library to allow enemy spawners to create turrets.

Internal
12 hours ago
2.0
5
Combat Enemies
Owner:
Frontrider
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
13 hours ago
Latest Version:
0.1.1 (12 hours ago)
Factorio version:
2.0
Downloaded by:
5 users

Library that allows enemy spawners to spawn turrets, as if they were regular units.

Usage:
Set the unit field on the unit spawn definition in the spawner's result_unit list to a turret. It can not be an ammo turret, it has to be a turret prototype.
That is it, treat the turret as if it was any spawnable unit.
The code runs in final fixes, have your spawner ready until then.

https://lua-api.factorio.com/latest/prototypes/TurretPrototype.html
https://lua-api.factorio.com/latest/prototypes/EnemySpawnerPrototype.html
https://lua-api.factorio.com/latest/types/UnitSpawnDefinition.html