Traits "Health" & "Harvester" changeable by condition?

is there a way to modify/change health of a unit and harvest speed or at least BaleUnloadDelay from actors?

Information and discussion for custom maps and mods.
Post Reply
User avatar
Zeruel87
Posts: 56
Joined: Mon Oct 15, 2018 8:18 pm
Location: Austria
Contact:

Traits "Health" & "Harvester" changeable by condition?

Post by Zeruel87 »

Greetings,

in the Trait list i see no way to change the Max Health (HP) value of an actor.
Same thing goes for Harvester, i see no way via conditions or prerequisites to change the harvesting speed or unload speed of harvesters.

is there any way?

one workaround i can imagine is to replace the whole unit with the "KillsSelf" Trait.
Or with the "Transforms" Trait but then you manually need to trigger the transformation, or is there a way to autmatically transform an actor with LUA?

so bottom line: is there a way to modifie Max HP Values of actors and the Harvest speed?
Check out my CnC mod at:
https://www.moddb.com/mods/cameo

User avatar
Inq
Posts: 95
Joined: Sun Sep 27, 2015 2:48 am

Re: Traits "Health" & "Harvester" changeable by condition?

Post by Inq »

There is no way to do either of those without using a workaround or custom code.

Killself with a condition & "Transform" DamageTypes, then SpawnActorOnDeath with the "Transform" DamageType would be one way of working around it.

User avatar
Graion Dilach
Posts: 277
Joined: Fri May 15, 2015 5:57 pm

Re: Traits "Health" & "Harvester" changeable by condition?

Post by Graion Dilach »

You should be able to mimic Health pool changes with DamageMultiplier though.

Post Reply