Spawn
From ZDoom Wiki
int Spawn (str classname, fixed x, fixed y, fixed z [, int tid [, int angle]])
Usage
Spawns an actor...
Spawn is independent of map spots, so you need to specify what coordinates the actor will spawn at. The Z coordinate is relative to the entire map (aka the floor height) and not the sector. So if you want something to spawn 128 units above a floor that's at a height of 64 then the Z coordinate needs to be 192.
Angle is a byte angle.
To spawn something at the location of a MapSpot, use SpawnSpot instead.
To get a list of the things you can spawn in the game, visit the Classes page
The return value is the number of things spawned.
Examples
| | Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated. |

