Openra: Request a Trait for remotely transforming an Husk

Created on 14 Apr 2020  路  4Comments  路  Source: OpenRA/OpenRA

Had an idea of an support power that will restore the targeted vehicle husk(s) to functionality, there doesnt seem to be a way short of triggering it.
I have been told there exists TransformsOnCondition on upstream but not here. That would have been ideal if existed here as thought of doing it as an GrantExternalConditionPower that will target the husk.

IdeWishlist Mod Support

Most helpful comment

Do this instead:
SpawnActorOnDeath:
RequiresCondition: restorewhatevername

Then make a new custom IonCannonPower
and give it a weapon with GrantExternalConditionWarhead with granting condition restorewhatevername. and toy with the damage so it will grant the condition first and then kill the actor, triggering the SpawnActorOnDeath trait.

All 4 comments

Do this instead:
SpawnActorOnDeath:
RequiresCondition: restorewhatevername

Then make a new custom IonCannonPower
and give it a weapon with GrantExternalConditionWarhead with granting condition restorewhatevername. and toy with the damage so it will grant the condition first and then kill the actor, triggering the SpawnActorOnDeath trait.

your suggestion worked super. it would be even better if can set health of spawned unit to % of max health as normally capturing it with a Mechanic does.
recoverwrack

Happy I could help out!

For the health you could try to add an extra "after damage weapon", to the IonCannonPower weapon. I think its possible to do that with SpreadDamageWarhead using Delay.

Also sorry for the delay. The solution just came to my mind right now.

Was this page helpful?
0 / 5 - 0 ratings