Bonjour everyone, my first post on here, and it has to be a question, my sincere apologies.
I want to use Set Tint on the model for an impact. It has an Attack Actor (Action type), which has the Launch Missile effect, which in turn runs the Damage effect, which calls the Impact Model of the Attack Actor, right? But I'm at a loss as to what the event is called that creates the model, so I can set the tint. Tried lots of things, but nothing works. Tinting of the missile works easily through the Unit Birth of the weapon in the Attack Missile actor.
This is the actor, and as you can see the Impact model is linked through the impact map.
Impact Effect is set to Phase Cannon - Power Tower (Damage)
The events for the Attack Actor. I've tried lots of events to set the tint, but none seem to work.
I've also tried to make an Actor with type model and set it to the Impact model, then set the Art - Impact Model to that actor and in the Impact Model Actor set the Actor Creation event to a Set Tint, didn't work. Also didn't work if I removed the model reference from the Impact Map in the Attack Actor.
to clearify, u want a unit to change color when it's hit by a damaging effect? if that what you want, have the damage spell put a buff on the target, and make the duration how long you want the unit's tint to change. then in the actor tab, go to events and change it to behavior -> "tint buff" -> "on" and event would change tint to whatever you want. keep in mind this will require you add this event to every actor of every unit that you want the color tint to effect. hope this helps, gl
Ok... great, I solved it. How bittersweet, been trying this all day yesterday, and a bit the night before, nothing worked. Now I made an Actor again for the Impact model, but this time set it to ModelAnimationStyleOneShot. Set a tint on the Actorcreation, and set the Attack Actor's Art - Impact Model to this actor.
So I guess my mistake was not to use that model type, argh. Funny how it worked just as I finally cracked and posted this, boooo!!! haha
to clearify, u want a unit to change color when it's hit by a damaging effect? if that what you want, have the damage spell put a buff on the target, and make the duration how long you want the unit's tint to change. then in the actor tab, go to events and change it to behavior -> "tint buff" -> "on" and event would change tint to whatever you want. keep in mind this will require you add this event to every actor of every unit that you want the color tint to effect. hope this helps, gl
Ah no, sorry for the confusion here, took my sweet time in clarifying the OP. It is something I will use though :P
Ok... great, I solved it. How bittersweet, been trying this all day yesterday, and a bit the night before, nothing worked. Now I made an Actor again for the Impact model, but this time set it to ModelAnimationStyleOneShot. Set a tint on the Actorcreation, and set the Attack Actor's Art - Impact Model to this actor.
I would always base it on/use a copy of the actor I am replacing, in your case the Generic Impact Model
to clearify, u want a unit to change color when it's hit by a damaging effect? if that what you want, have the damage spell put a buff on the target, and make the duration how long you want the unit's tint to change. then in the actor tab, go to events and change it to behavior -> "tint buff" -> "on" and event would change tint to whatever you want. keep in mind this will require you add this event to every actor of every unit that you want the color tint to effect. hope this helps, gl
You can change the Target field for an event (for example to ::Main or _Selectable) to change the tint color of the unit without having to add the event to every single unit actor.
@snekkel: Go
I would always base it on/use a copy of the actor I am replacing, in your case the Generic Impact Model
Hm, that's... good advice! If I'd have done that I would have been done in a tenth of the time. You best believe I won't be making actors from scratch anytime soon after this.
@snekkel: Go
to clearify, u want a unit to change color when it's hit by a damaging effect? if that what you want, have the damage spell put a buff on the target, and make the duration how long you want the unit's tint to change. then in the actor tab, go to events and change it to behavior -> "tint buff" -> "on" and event would change tint to whatever you want. keep in mind this will require you add this event to every actor of every unit that you want the color tint to effect. hope this helps, gl
Instead of the Generic Impact Model actor, you can use a custom impact model actor for your action actor, and change the tint color for that.
Ok... great, I solved it. How bittersweet, been trying this all day yesterday, and a bit the night before, nothing worked. Now I made an Actor again for the Impact model, but this time set it to ModelAnimationStyleOneShot. Set a tint on the Actorcreation, and set the Attack Actor's Art - Impact Model to this actor.
So I guess my mistake was not to use that model type, argh. Funny how it worked just as I finally cracked and posted this, boooo!!! haha
Exactly what I did, and it worked this time. Best not to forget to set the oneshot to it I guess, or at least add the proper BirthStandDeath events :/
Ah no, sorry for the confusion here, took my sweet time in clarifying the OP. It is something I will use though :P
I would always base it on/use a copy of the actor I am replacing, in your case the Generic Impact Model
You can change the Target field for an event (for example to ::Main or _Selectable) to change the tint color of the unit without having to add the event to every single unit actor.
Hm, that's... good advice! If I'd have done that I would have been done in a tenth of the time. You best believe I won't be making actors from scratch anytime soon after this.
Pity since making them from scratch usually has the best results (action actors excepted)
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg