| 04-02-2008, 03:59 AM | #1 |
I'm attaching the unit model of a footman as a special effect to the hand of a battlegolem. In my quick and dirty cinematic, the golem "scoops" up the footman and I create a special effect using the footman model in his hand. The only problem: This footman model is ALWAYS red in the hands of the golem. The footman he scoops up can be any color. Is there an easy way to modify the model color without making a fresh model? -I feel like this should be possible somehow.....using the WE GUI, when I select the footman model for the special effect it shows up with black coloring in the previewer, so it looks like the game changes the color for me somehow....If only I could do the same. I tried changing the owner and color of the golem I'm attaching to but had no luck. Any help would be appreciated, thanks :) |
| 04-04-2008, 04:08 AM | #2 |
If you tried all those ways, I don't think it would be possible. It probably resorts to the default Player 1 - (Red) for the team color. |
| 04-04-2008, 04:26 AM | #3 |
You have to call SetUnitColor(MyGolem, PlayerColorOfOwnerofFootman) or the GUI equivalent "Unit - Set unit color." This will, however, require you change the color of the golem in order to change the color of the footman it holds. There is no way to avoid this without importing new footmen models for each color. |
| 04-04-2008, 07:56 PM | #4 |
Ah I got it to work. I had already tried your advice but I was changing the unit color BEFORE I attached the special effect. I changed the unit's color immediately after and it worked great. Lucky for me the Battle Golem doesn't display any sort of team color so this works perfect. It looks like no matter the color of the unit you're attaching to, the attached unit will be red until you change the base unit's color. Thanks all. |
