[Solved] Create New Enemy Force
Posted: Sat Sep 26, 2020 9:23 am
Hi all,
I would like to create a new enemy force from scratch and haven't found any examples of this yet.
1.) I'm trying to see how they do it in base and a couple mods (BigEnemies for example) but it seems like mods copy existing biters and in base I can't see how they actually implement the force.
2.) In base, biters are of type unit, and the only reference I see to enemies is the subgroup (subgroup="enemies").
3.) I'm also looking through the LuaForce class but I'm not sure how to actually create the new force.
Do I extend data like we do with entities? I don't see a 'Type' field in the LuaForce class, so wasn't sure what to put in the Type if I did it that way.
The overall objective is to create a simple enemy force, add in a couple units, and see if I can make them attack me. Then add in CAPITAL SHIPS WOOT.
I would like to create a new enemy force from scratch and haven't found any examples of this yet.
1.) I'm trying to see how they do it in base and a couple mods (BigEnemies for example) but it seems like mods copy existing biters and in base I can't see how they actually implement the force.
2.) In base, biters are of type unit, and the only reference I see to enemies is the subgroup (subgroup="enemies").
3.) I'm also looking through the LuaForce class but I'm not sure how to actually create the new force.
Do I extend data like we do with entities? I don't see a 'Type' field in the LuaForce class, so wasn't sure what to put in the Type if I did it that way.
The overall objective is to create a simple enemy force, add in a couple units, and see if I can make them attack me. Then add in CAPITAL SHIPS WOOT.