Page 1 of 1

Crates appearing after destroying a building

Posted: Thu Nov 10, 2022 6:04 pm
by Dasha
Hi,

I've created this skirmish map, and have a question.
Is it possible to :
1. Make a crate appear after a particular civilian building is destroyed ?
2. If so, is it possible to force what it'll contain ?

Dasha.

Re: Crates appearing after destroying a building

Posted: Fri Nov 11, 2022 1:46 pm
by abcdefg30
Hi. Yes, it is doable. You will have to create a new actor for the civilian building (duplicate the existing one) and add "SpawnActorOnDeath:" to it (I suggest looking at https://docs.openra.net/en/release/traits/ and the existing default rule definitions for how to use it). Then create a new crate actor with just the crate action you want it to trigger, and make SpawnActorOnDeath spawn that new crate actor.

Re: Crates appearing after destroying a building

Posted: Fri Nov 11, 2022 4:15 pm
by Dasha
Thanks, I'll check this !