Team Colors on Map Features

Team Colors on Map Features

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
kfriars
Posts: 36
Joined: 28 Sep 2011, 01:00

Team Colors on Map Features

Post 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!
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Team Colors on Map Features

Post 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
kfriars
Posts: 36
Joined: 28 Sep 2011, 01:00

Re: Team Colors on Map Features

Post by kfriars »

You're the best. Thanks!
Post Reply

Return to “Map Creation”