[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]
onlinecontact
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]
:(){ :|:& };:
onlinecontact
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]
onlinecontact
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]
:(){ :|:& };:
onlinecontact
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]
onlinecontact
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]
onlinecontact
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.


VRAEL = 뱃맨!!!
Top

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

[Avatar]
onlinecontact
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.


VRAEL = 뱃맨!!!
Top
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)


[03:04 am]
TiKels -- he did
[03:03 am]
Sand Wraith -- LOL
[03:03 am]
Biophysicist -- ...Hearts should remain in people, not in walls. Thanks a lot, imagination. Thanks a lot. That was gross.
[03:03 am]
Sand Wraith -- what kind of shitty university accepts ME into their science department
[03:03 am]
Sand Wraith -- ROFL what the fuck
[03:03 am]
SmE(Raitaki -- Or torturing my brain so hard it starts hallucinating
[03:03 am]
SmE(Raitaki -- Now I wonder how to do that without getting high
Please log in to shout.