Question about sides

Question about sides

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
zalpha
Posts: 23
Joined: 19 Mar 2013, 18:39

Question about sides

Post by zalpha »

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?
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Question about sides

Post by Anarchid »

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).
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Question about sides

Post by FLOZi »

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.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Question about sides

Post by KDR_11k »

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.
Post Reply

Return to “Game Development”