A_SpawnDebris
From ZDoom Wiki
A_SpawnDebris (string type, bool translation)
Spawns debris actors based on the specified type and positions them around the calling actor. The debris type has to be defined in a certain way:
- Its health parameter specify the amount n of objects being spawned.
- The first n states are reserved as the initial states for the separate objects. If you want to do some animations you can jump to later states from here.
If translation is 1, the spawned actor will be assigned the same translation table as the actor that called the function.
Examples
This is an example of a valid debris class:
actor SentinelDebris
{
health 15
radius 1
height 1
states
{
Spawn:
SNT1 A -1
SNT2 A -1
SNT3 A -1
SNT3 A -1
SNT4 A -1
SNT4 A -1
SNT5 A -1
SNT6 A -1
SNT7 A -1
SNT7 A -1
SNT8 A -1
SNT8 A -1
SNT9 A -1
SNT9 A -1
SNT0 A -1
}
}

