You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TD used to spawn actors when buildings were destroyed (e.g. Commando blows up a SAM site: two minigunners appear); there apparently exists an EmitInfantryOnSell trait, but there is no such thing as EmitInfantryOnDestruction.
Also the traits are named inconsistently (ActorTypes & Actor, ProductionAirdrop uses ActorType), and wouldn't SpawnActorOnSell be better? (I guess it's possible to emit vehicles as well)
The text was updated successfully, but these errors were encountered:
"Yes" to SpawnActorsOnSell with an Actors property and "yes" to SpawnActorsOnDeath with an Actors property.
Also SpawnActorOnDeath is not on the traits page because it was just recently added and that's the traits page for the release.
@abcdefg30 Yes that is possible, but I don't see a reason not to fulfill this request. SpawnActorOnDeath being conditional and allowing multiple Actor types to be provided is the most flexible without requiring many SpawnActorOnDeath instances.
This needs discussion and a decision on how we're going to supply spawn offsets.
The path of least breakage would be Offset being refactored into CVec[] Offsets with a 1:1 relationship with Actors.
The issue with a 1:1 relationship is that we don't have a way for specifying cell+subcell pairs. It would be simpler IMO to define just the footprint of valid cells (e.g. CVec[] Offsets) and then spawn the units randomly within those.
In any case this should be sharing at least the user facing behaviour but ideally also the code with SpawnActorsOnSell. We could pull out a base class like we do for AffectsShroud or have a single trait that has an enum for EmitType.Sell, EmitType.Destroyed, etc.
TD used to spawn actors when buildings were destroyed (e.g. Commando blows up a SAM site: two minigunners appear); there apparently exists an
EmitInfantryOnSell
trait, but there is no such thing asEmitInfantryOnDestruction
.SpawnActorOnDeath
is not listed on https://github.com/OpenRA/OpenRA/wiki/Traits , but it seems it can only emit a single actor:Also the traits are named inconsistently (
ActorTypes
&Actor
, ProductionAirdrop usesActorType
), and wouldn'tSpawnActorOnSell
be better? (I guess it's possible to emit vehicles as well)The text was updated successfully, but these errors were encountered: