Page 1 of 1

Team Colors on Map Features

Posted: 05 Jan 2012, 13:36
by kfriars
Excuse my lack of experience. Is it possible for map features to be updated with team color dynamically during a game. Searched and no definitive answer. Thanks in advance!

Re: Team Colors on Map Features

Posted: 05 Jan 2012, 13:38
by Beherith
Absolutely yes. The teamcolor distribution on a feature is is the same as a model. Alpha channel of texture 1.

The actual color is the same as the the corresponding owner team ID.

You can use lua to transfer a feature to a team:
Spring.TransferFeature( number featureID, number teamID ) -> nil
http://springrts.com/wiki/Lua_SyncedCtr ... e_Handling

Re: Team Colors on Map Features

Posted: 05 Jan 2012, 13:41
by kfriars
You're the best. Thanks!