Can a unit/building have an undefined side?
I am working on a game that will have buildings that can be claimed scattered on the map, and was wondering if that is the way to do it, or if there is a better way?
Question about sides
Moderator: Moderators
Re: Question about sides
There is Gaia, which is pretty much the neutral team antagonistic to all others.
There is also possibility of making units neutral (it's an unitdef tag) that prevents normal units from auto-targeting it whenever possible (manual fire still works).
There is also possibility of making units neutral (it's an unitdef tag) that prevents normal units from auto-targeting it whenever possible (manual fire still works).
Re: Question about sides
neutral isn't a unitdef tag, you have to set it in lua with Spring.SetUnitNeutral(unitID, true).
Yeah, way to do it is to give those units to gaia team, and set them to neutral if you don't want them to be attacked.
Yeah, way to do it is to give those units to gaia team, and set them to neutral if you don't want them to be attacked.
Re: Question about sides
The Gaia team is always the last team on the list. And yeah, it's hostile to all so all player units will autotarget Gaia and Gaia will autotarget other units so you have to do something to prevent them from fighting each other if you want neutrals.