[skip all navigation]

Unit-Actor-Model Linking and Model Colouring

Creator: Sand Wraith
Time: Sep 11 2010, 2:46 am

Post #1     Sand Wraith Sep 11 2010, 2:46 am

[Avatar]
offlinecontact
Rank: Regular
I have a problem that I actually have no idea about how to fix.

Specifically, I took my Drone and duplicated it twice, each time only copying over the Unit itself, it's main Actor, and it's main Model data. Afterwards, I named them Drone (+100HP), Drone (+50HP), and Drone (+25HP).
In their Actor section, I changed their model scaling to 1.0, 0.8, and 0.6 respectively.
Lastly, I changed their RGB values to 55/55/255 (blue), 55/255/55 (green), and 255/55/55 (red), in the Color tab in the Models section.

Now, in-game, the renaming and model scaling has worked.
However, the Drones are not blue, green, and red.

How to fix?
The map with the problem is attached for your convenience.
Attachments:
sc2map file
rampage.SC2Map (177.14 kb)
1 hits.

(user posted image)
Top

Post #2     Biophysicist Sep 11 2010, 2:56 am

[Avatar]
:(){ :|:& };:
offlinecontact
Rank: Regular
Have you tried a Set Tint actor message?

Your trolltag is twinArmageddons and you tend two 2peak wiith a biit of a lii2p.
Top

Post #3     Sand Wraith Sep 11 2010, 3:05 am

[Avatar]
offlinecontact
Rank: Regular
What are you talking about?

I can't find what you're talking about in Actors/Models, though I've found a working trigger for this purpose, I guess.

(user posted image)
Top

Post #4     Biophysicist Sep 11 2010, 3:19 am

[Avatar]
:(){ :|:& };:
offlinecontact
Rank: Regular
Add a new event that calls Set Tint Color.

(user posted image)

Your trolltag is twinArmageddons and you tend two 2peak wiith a biit of a lii2p.
Top

Post #5     Sand Wraith Sep 11 2010, 3:31 am

[Avatar]
offlinecontact
Rank: Regular
wow that's ass backwards

Okay, thanks, it works (but it's still stupid).

(user posted image)
Top

Post #6     Temp Sep 11 2010, 3:31 am

[Avatar]
offlinecontact
Rank: Regular
You could use a single actor/model for this using Actor events. You would use the unit damaged event and then add a term which uses a validator which checks a units health and a tint for the action.

Top

Post #7     Sand Wraith Sep 11 2010, 3:58 am

[Avatar]
offlinecontact
Rank: Regular
What do you mean by that? Wouldn't that mean my Drone would have to be damaged first or something?

(user posted image)
Top

Post #8     Jack[RCDF Sep 11 2010, 4:00 am

[Avatar]
Understanding breeds empathy.
offlinecontact
Rank: Regular
Quote from Sand Wraith
What do you mean by that? Wouldn't that mean my Drone would have to be damaged first or something?
Check max health, not current health. (I think.)

Red classic.

Left SEN, I may pop in sometimes but I have more useful things to do with my time. If you need anything, email me at zany DOT wun AT gmail DOT com. Maybe I'll come back some day and be regular again but right now it's not for me.
gg
olo im still here till the 2011 last stand contest and these SD topics are done with
Top

Post #9     Sand Wraith Sep 11 2010, 4:11 am

[Avatar]
offlinecontact
Rank: Regular
But doesn't the Drone still have to be damaged first?

And, won't my Drones all have to be the same unit in this scenario? I prefer them being separate, since they each would have their own names.

Besides that, as separate units, I can detect which of the three are actually being collected by the Player so I can add the right amount of HP to my unit.

(user posted image)
Top

Post #10     Jack[RCDF Sep 11 2010, 4:14 am

[Avatar]
Understanding breeds empathy.
offlinecontact
Rank: Regular
Quote from Sand Wraith
But doesn't the Drone still have to be damaged first?

And, won't my Drones all have to be the same unit in this scenario? I prefer them being separate, since they each would have their own names.

Besides that, as separate units, I can detect which of the three are actually being collected by the Player so I can add the right amount of HP to my unit.
Yeah if that's what you want, just have several copies. Easier all around.

Red classic.

Left SEN, I may pop in sometimes but I have more useful things to do with my time. If you need anything, email me at zany DOT wun AT gmail DOT com. Maybe I'll come back some day and be regular again but right now it's not for me.
gg
olo im still here till the 2011 last stand contest and these SD topics are done with
Top
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)


[03:28 pm]
Roy -- That "Still" was so powerful it capitalized the first letter of the proceeding word.
[03:13 pm]
SmE(Raitaki -- Wondering if I have gone to the correct period or not :/
[03:12 pm]
SmE(Raitaki -- I STILL Spend half of my school periods walking to class and wn
[02:29 pm]
Roy -- I've seen replays of Temple Siege with that guy in it.
[12:38 pm]
Azrael.Wrath -- Just throwing that out there.
[12:38 pm]
Azrael.Wrath -- Also, Herbalogist is about the biggest degenerate I've had the displeasure of encountering in a long time, online or otherwise.
[12:36 pm]
Azrael.Wrath -- Back to doing turns.
Please log in to shout.