This is pretty straightforward, so I'm probably just missing simple - I've created several custom units using SC2 assets by following this guide, but unfortunately, when the unit dies, it simply disappears immediately.
I've gone and looked at the equivalent unit for how the Death effect is handled (ex. looking at the Infestor unit for a custom unit using the Infestor model) and set up the Death Effects identically, but the unit still pulls a Houdini.
How would one cause a unit to change to its death model when it dies, from any source?
Seems like the death model you've chosen for your custom units is not linked properly to the actor.
I use the Marine as an example. Below are two pictures attached, in case my written description is unclear
Go to the Marine Actor
Click on "Death Effects"
Click on "Type Normal"
Scroll down and click on "Model" (Right now it says "Marine Death", which means that it links to the Marine Death model)
Have you already done this for your custom units?
Note - if a unit dies from fire, disintegration, a blast or some other way, that will require different death models added to the same unit. For example, when a Marine dies from fire, it is because there is an additional type of burning death model added to it.. If a unit has no death model added to a specific type of death, it will just "disappear" when it dies in that way.. Perhaps that is happening for some of your custom units?
Ah, this was one of the first things I tried (since I looked at the data for the unit whose model I'm using when this first happened), so I'm not sure what I'm missing...
I'll post up some images, but the basic gist is: using corruptor model as custom unit model -> model attached to actor -> actor's Normal death effects call in the corruptor's death model -> custom unit using the corruptor model disappears on death without triggering the death model.
I may end up calling in more from the Corruptor unit (duplicating it and shaving things down/replacing them as I need to), but if I'm just missing something simple, please let me know!
Ah - found the missing piece! Taking a closer look at other SC2 units, I've been neglecting/misusing the "Death Model" field. Inputting something like "Unit Death With Death Motion Ground" completes the circuit and both A) triggers the unit's death model on death and B) allows them to function with death physics.
Well that's nice and all, but how can I apply this to a structure like a tech lab for instance? I can't find out how to apply both the death and the detached death.
This is pretty straightforward, so I'm probably just missing simple - I've created several custom units using SC2 assets by following this guide, but unfortunately, when the unit dies, it simply disappears immediately.
I've gone and looked at the equivalent unit for how the Death effect is handled (ex. looking at the Infestor unit for a custom unit using the Infestor model) and set up the Death Effects identically, but the unit still pulls a Houdini.
How would one cause a unit to change to its death model when it dies, from any source?
Seems like the death model you've chosen for your custom units is not linked properly to the actor.
I use the Marine as an example. Below are two pictures attached, in case my written description is unclear
Go to the Marine Actor
Click on "Death Effects"
Click on "Type Normal"
Scroll down and click on "Model" (Right now it says "Marine Death", which means that it links to the Marine Death model)
Have you already done this for your custom units?
Note - if a unit dies from fire, disintegration, a blast or some other way, that will require different death models added to the same unit. For example, when a Marine dies from fire, it is because there is an additional type of burning death model added to it.. If a unit has no death model added to a specific type of death, it will just "disappear" when it dies in that way.. Perhaps that is happening for some of your custom units?
@Kabelkorven: Go
Ah, this was one of the first things I tried (since I looked at the data for the unit whose model I'm using when this first happened), so I'm not sure what I'm missing...
I'll post up some images, but the basic gist is: using corruptor model as custom unit model -> model attached to actor -> actor's Normal death effects call in the corruptor's death model -> custom unit using the corruptor model disappears on death without triggering the death model.
I may end up calling in more from the Corruptor unit (duplicating it and shaving things down/replacing them as I need to), but if I'm just missing something simple, please let me know!
When you make the unit from scratch like that you could be missing unit events
@DOOMEDEARTH: Go
Ah - found the missing piece! Taking a closer look at other SC2 units, I've been neglecting/misusing the "Death Model" field. Inputting something like "Unit Death With Death Motion Ground" completes the circuit and both A) triggers the unit's death model on death and B) allows them to function with death physics.
Well that's nice and all, but how can I apply this to a structure like a tech lab for instance? I can't find out how to apply both the death and the detached death.
Random Guy.
What you mean by detached death?
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
In reply to DrSuperEvil:
Random Guy.