Been struggling with this one for awhile. Basically I have a summoned stationary unit that starts at height -.9, and gets his height boosted .9 via behaviors and a modify unit effect. All this works fine, but when he dies, he dies at height -.9.
I have been trying a lot of things, death effect squibs, events involving UnitDeath setting the height higher, events calling an SOPHigherbyp9 SOP, pointing at alias _UnitDeath, custom _UnitDeath, Target Unit Death model, all to no avail. I know I could just disable the death animation and have a death model spawn at that location instead, but that seems ridiculous to me. Does anyone know a good way to do it all inside the Unit Actor instead?
could you modify the death animation model itself and have a couple different copies all with different heights? then determine which one to play depending on units height at the time?
This could work, if I could find a field that boosts a model's height. Not seeing one for a model with parent Unit Death, if you know of one, let me know and I'll try it. The Events section is much different than an actor's.
how about this: upon death the unit spawns a dummy unit with a preset height. your unit's height determined which dummy unit would be spawned (maybe put a validor and/or dummy behavior on the units raise ability) the unit would then play a death animation for the unit, the death animation would be the correct height as long as the dummy unit's height was also correct.
Easier still would just be having a one shot actor respond to the death and appear for me. I know how to do that, but I am wanting to figure out how to make the corpse higher using the Unit Actor only.
i think that the height of the unit gets reset on death. try to check the flag of the behavior to be active while being dead.
normally the death actor inherits from the unit.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Been struggling with this one for awhile. Basically I have a summoned stationary unit that starts at height -.9, and gets his height boosted .9 via behaviors and a modify unit effect. All this works fine, but when he dies, he dies at height -.9.
I have been trying a lot of things, death effect squibs, events involving UnitDeath setting the height higher, events calling an SOPHigherbyp9 SOP, pointing at alias _UnitDeath, custom _UnitDeath, Target Unit Death model, all to no avail. I know I could just disable the death animation and have a death model spawn at that location instead, but that seems ridiculous to me. Does anyone know a good way to do it all inside the Unit Actor instead?
Any help much appreciated!
could you modify the death animation model itself and have a couple different copies all with different heights? then determine which one to play depending on units height at the time?
@joey101d: Go
This could work, if I could find a field that boosts a model's height. Not seeing one for a model with parent Unit Death, if you know of one, let me know and I'll try it. The Events section is much different than an actor's.
unfortunately im not sure how to either :s
how about this: upon death the unit spawns a dummy unit with a preset height. your unit's height determined which dummy unit would be spawned (maybe put a validor and/or dummy behavior on the units raise ability) the unit would then play a death animation for the unit, the death animation would be the correct height as long as the dummy unit's height was also correct.
@joey101d: Go
Easier still would just be having a one shot actor respond to the death and appear for me. I know how to do that, but I am wanting to figure out how to make the corpse higher using the Unit Actor only.
i think that the height of the unit gets reset on death. try to check the flag of the behavior to be active while being dead.
normally the death actor inherits from the unit.