Help needed. Specific death trait below specific condition..

Information and discussion for custom maps and mods.
Post Reply
User avatar
SoScared
Posts: 1116
Joined: Wed Apr 11, 2012 6:16 pm
Location: Oslo
Contact:

Help needed. Specific death trait below specific condition..

Post by SoScared »

I just can't get invurnerability to trigger an explotion with:

Code: Select all

KillsSelf:
	RequiresCondition: invulnerability
	Explodes:
		Weapon: MADTankDetonate
		EmptyWeapon: MADTankDetonate
The unit dies but doesn't provide for an explotion.

Any help on this would be greatly appreciated.
Last edited by SoScared on Sat Feb 04, 2017 5:26 pm, edited 1 time in total.

User avatar
Nolt
Posts: 38
Joined: Fri Jun 19, 2015 10:04 pm
Location: Chile
Contact:

Post by Nolt »

Check the identation, seems you set it up as of explodes was a part of kills self, when it is not.
Image
Creator of Shattered Paradise and Nomad Galaxy. WARNING, there are tons of gifs on both pages.

User avatar
SoScared
Posts: 1116
Joined: Wed Apr 11, 2012 6:16 pm
Location: Oslo
Contact:

Post by SoScared »

The idea was to get the Iron Curtain to trigger the explosion.

Regardless I've decided to simply trigger the explosion when the unit dies regardless (by simply aligning 'explotions' with the other traits).

User avatar
Nolt
Posts: 38
Joined: Fri Jun 19, 2015 10:04 pm
Location: Chile
Contact:

Re: Minor mystery.

Post by Nolt »

Code: Select all

KillsSelf:
	RequiresCondition: invulnerability
Explodes:
	Weapon: MADTankDetonate
	EmptyWeapon: MADTankDetonate
[/code]

If this doesn't work then... wait, Vanilla ORA doesn't have explode weapon, if that doesn't work then idk :|
Image
Creator of Shattered Paradise and Nomad Galaxy. WARNING, there are tons of gifs on both pages.

User avatar
SoScared
Posts: 1116
Joined: Wed Apr 11, 2012 6:16 pm
Location: Oslo
Contact:

Post by SoScared »

Yeah that's the code I'm using. It works^^

User avatar
SoScared
Posts: 1116
Joined: Wed Apr 11, 2012 6:16 pm
Location: Oslo
Contact:

Post by SoScared »

Revisiting this thread. No matter what indentation used I still cannot attach a specific explosion to the invulnerability.

Help needed!

Matt
Posts: 1144
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Post by Matt »

Paul already put it on the developer TODO list: https://github.com/OpenRA/OpenRA/issues/12695

User avatar
SoScared
Posts: 1116
Joined: Wed Apr 11, 2012 6:16 pm
Location: Oslo
Contact:

Post by SoScared »

Bump!

With https://github.com/OpenRA/OpenRA/issues/12695
and https://github.com/OpenRA/OpenRA/pull/12705

I'm still banging my head against the wall on this one. I want to make the MAD Tank use the weapon 'MADTankDetonate' when hit by the Iron Curtain. Currently I can't make it happen without making the 'MADTankDetonate' the default death behavior.

More specifically:
  • How to utilize Explode's DeathTypes for when using the KillsSelf trait?
  • Is there an isolated DeathType that could be used/created for the IC?
  • Does 'Explodes:' have conditions?

Post Reply