HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit Team Color

02-13-2004, 07:30 AM#1
sgtteflon
Alright, most likely a simple question, but....

I've changed the Team Color field for a pair of units in a map to Grey and Blue, respectively. This works out fine for units which are preplaced. However, training these units in-game results in the owners team color.

Is this hard code, or am i missing something? MAKE THEM STAY BLUE!
02-13-2004, 07:34 AM#2
Steelfish
I think you mean, if you are for example player 2 (Blue) your units should be grey. Right?

This you can change in the Uniteditor under teamcolor
02-13-2004, 08:26 PM#3
sgtteflon
right, that works fine for placed units. but not for trained units. is there something im missing in regards to making trained units use your custom team color?
02-13-2004, 08:37 PM#4
Kamahl
I have this same problem. I always just said when a unit is made, give it to the color I wanted it to be to, change the color, give it back, don't change color.
02-13-2004, 08:59 PM#5
Lord_Osiris
just use a simple trigger...

Event: A unit finished training
Condition Unit Type of Triggering Unit is equal to Your Unit
Action: Unit Change color of unit to grey
02-13-2004, 09:20 PM#6
LegolasArcher
More effective is:

Events:
Unit Enters (Playable Map Area)
Conditions:
Or (Multiple Actions)
Unit Type of (Entering Unit) is Equal to [unittype]
// Repeast for each unit type
Actions:
Change color of (Entering Unit) to [your color]

This will work if you create a unit aswell
02-13-2004, 10:17 PM#7
sgtteflon
Thankyou much guys.