Hello again, i'm here asking for some help once more. I have this custom wrecked bunker unit, that you can repair and morph it into a bunker, that's all fine and dandy. I want to make the normal everyday bunker, morph into this custom unit upon death. I tried doing Event: Unit Death - Bunker
L Create (actor)Wrecked Bunker But when the bunker gets destroyed, it just creates the model of the wrecked bunker but no collision nor function. I reckon its because the unit is dead hence the newly created actor has no health so the new created actor doesn't work. I presume id have to make some mumbo jumbo shenanigans to pull of healing it or something but honestly cant wrap my head around it. Is there any way to do this? i'm sure i'm not the only one who had this idea.
1. Have the wrecked bunker be created as a new unit when the regular bunker dies. Or,
2. Have the regular bunker never actually die, and instead morph into the wrecked bunker when it reaches 0 hp.
Option 1 sounds easier in my mind. It could be achieved with either a data or trigger solution. For data you could use a behavior with a death effect that creates the new unit. For triggers you'd use a unit death event, check the unit type in a condition, then use a create unit action.
For data you could use a behavior with a death effect that creates the new unit.
I tried the data method, it spawns a new wrecked bunker unit but it doesnt take the original bunker's place, it spawns near the original location but never in the same spot for some reason.
For triggers you'd use a unit death event, check the unit type in a condition, then use a create unit action.
This seems to work fine, but i really want to make the data solution work.
If you have any further explanation on how to make it "never truly die" then i'd really appreciate it.
Either way thanks man! if you have any further explanation of why the effect method doesn't work properly i would really thankful. Edit: After a few round of testing on the trigger solution, i have the problem that, if the bunker has cargo, the wrecked bunker spawns near it because the units that came out of the bunker are blocking its place
Thanks man! it works wonders. I also need help with another problem i have, you see i have a rebuildable wreckage of a siege tank, thing is when i use the "rebuild siege tank" morph ability it spawns another siege tank actor that plays the sieging animation, is there a way to prevent this actor from being created somehow?
Edit: i've found the reason but, i cant figure out a way to deactivate these without breaking the unit itself (in SiegeTankSieged actor)
Perhaps add in another term, so then in AbilMorph.*.Finish, it has both MorphToSiegeTankSieged and MorphFromSiegeTank, and for AbilMorph.*.Start it has MorphFromSiegeTankSieged and MorphToSiegeTank? Iirc that's how the Viking is set up, so that might help.
Perhaps add in another term, so then in AbilMorph.*.Finish, it has both MorphToSiegeTankSieged and MorphFromSiegeTank, and for AbilMorph.*.Start it has MorphFromSiegeTankSieged and MorphToSiegeTank? Iirc that's how the Viking is set up, so that might help
i didnt thought of that, damn. Thanks man! Edit: sorry for being persistent, i have so many questions. Im trying to load infested marines to infested bunkers like in the zeratul missions, the problem is i cant because the bunker can only load terran units, any way to work around this? I guess ill just change the race of the unit i want to load
Edit2: Didnt seem to work, any other suggestions?
Does it have something to do with it being red? i dont know, maybe i should specify the morph ability.
For Infested Marine loading, you’ll want to modify the validators on the Bunker Load/Unload ability. As for the actor events of the Siege Tank, I have no idea unfortunately, the text being red has nothing to do with it working or not though afaik.
It worked but, they cant attack from inside the bunker, without mentioning i cant create infested terran as cargo on the bunker wtih triggers. Edit: i was using the infested terrans that the infestor spawns (i.e. InfestorTerran) which cannot enter any sort of cargo units like overlord or nydus worm, the correct unit was Infested Marine (campaign). I was using the wrong unit.
Hello again, i'm here asking for some help once more.
I have this custom wrecked bunker unit, that you can repair and morph it into a bunker, that's all fine and dandy.
I want to make the normal everyday bunker, morph into this custom unit upon death. I tried doing
Event: Unit Death - Bunker
L Create (actor)Wrecked Bunker
But when the bunker gets destroyed, it just creates the model of the wrecked bunker but no collision nor function.
I reckon its because the unit is dead hence the newly created actor has no health so the new created actor doesn't work.
I presume id have to make some mumbo jumbo shenanigans to pull of healing it or something but honestly cant wrap my head around it.
Is there any way to do this? i'm sure i'm not the only one who had this idea.
I'd appreciate an answer. Thanks!
I'd either:
1. Have the wrecked bunker be created as a new unit when the regular bunker dies. Or,
2. Have the regular bunker never actually die, and instead morph into the wrecked bunker when it reaches 0 hp.
Option 1 sounds easier in my mind. It could be achieved with either a data or trigger solution. For data you could use a behavior with a death effect that creates the new unit. For triggers you'd use a unit death event, check the unit type in a condition, then use a create unit action.
In reply to MaskedImposter:
I tried the data method, it spawns a new wrecked bunker unit but it doesnt take the original bunker's place, it spawns near the original location but never in the same spot for some reason.
This seems to work fine, but i really want to make the data solution work.
If you have any further explanation on how to make it "never truly die" then i'd really appreciate it.
Either way thanks man! if you have any further explanation of why the effect method doesn't work properly i would really thankful.
Edit: After a few round of testing on the trigger solution, i have the problem that, if the bunker has cargo, the wrecked bunker spawns near it because the units that came out of the bunker are blocking its place
For triggers, under flags, it'll say no options. Click on no options, and check the box that says Ignore Placement.
For Data, on the creation effect there are "creation options". I forget which one it is exactly. Probably placement, or ignore blockers.
In reply to MaskedImposter:
Thanks man! it works wonders.

I also need help with another problem i have, you see i have a rebuildable wreckage of a siege tank, thing is when i use the "rebuild siege tank" morph ability it spawns another siege tank actor that plays the sieging animation, is there a way to prevent this actor from being created somehow?
Edit: i've found the reason but, i cant figure out a way to deactivate these without breaking the unit itself
(in SiegeTankSieged actor)
Perhaps add in another term, so then in AbilMorph.*.Finish, it has both MorphToSiegeTankSieged and MorphFromSiegeTank, and for AbilMorph.*.Start it has MorphFromSiegeTankSieged and MorphToSiegeTank? Iirc that's how the Viking is set up, so that might help.
In reply to KillWithNapalm:
i didnt thought of that, damn. Thanks man!
Edit: sorry for being persistent, i have so many questions.
Im trying to load infested marines to infested bunkers like in the zeratul missions, the problem is i cant because the bunker can only load terran units, any way to work around this? I guess ill just change the race of the unit i want to load
Edit2: Didnt seem to work, any other suggestions?
Does it have something to do with it being red? i dont know, maybe i should specify the morph ability.
Edit3: Nope, didnt work :/
For Infested Marine loading, you’ll want to modify the validators on the Bunker Load/Unload ability. As for the actor events of the Siege Tank, I have no idea unfortunately, the text being red has nothing to do with it working or not though afaik.
In reply to KillWithNapalm:
It worked but, they cant attack from inside the bunker, without mentioning i cant create infested terran as cargo on the bunker wtih triggers.
Edit: i was using the infested terrans that the infestor spawns (i.e. InfestorTerran) which cannot enter any sort of cargo units like overlord or nydus worm, the correct unit was Infested Marine (campaign). I was using the wrong unit.