I am using the cloak/bury behavior to mimic a hidden unit. However, when I kill the unit, the death animation is visible to everyone. Is there a way around this?
I am doing the kill with a trigger, so I tried just removing the unit instead and sending an actor message to play the death anim, but it looks wonky in a pick each unit action.
You could try to use a custom Death Model actor with filters enabled. Not sure, if it will work. Alternatively, you can remove the death model alltogether and create a custom actor on unit death, where filters should work as usual.
So would I do a model swap in the original unit's actor events to do the death anim model? Or just call the death model actor when the original unit dies in it's own events?
I am using the cloak/bury behavior to mimic a hidden unit. However, when I kill the unit, the death animation is visible to everyone. Is there a way around this?
I am doing the kill with a trigger, so I tried just removing the unit instead and sending an actor message to play the death anim, but it looks wonky in a pick each unit action.
You could try to use a custom Death Model actor with filters enabled. Not sure, if it will work. Alternatively, you can remove the death model alltogether and create a custom actor on unit death, where filters should work as usual.
So would I do a model swap in the original unit's actor events to do the death anim model? Or just call the death model actor when the original unit dies in it's own events?
Model swap won't work.
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
@DrSuperEvil: Go
And that is why I posed the second question.
Edit: This is working now with a separate model for the death anim.