SpawnForced
From ZDoom Wiki
(development version r3104+ only)
int SpawnForced (str classname, fixed x, fixed y, fixed z [, int tid [, int angle]])
Usage
This is an alternative to Spawn which takes the same parameters. It forces the actor to spawn, even in conditions where the spawning would normally fail (for example, not enough room to place the actor). As such, it should be used carefully.
The coordinates are specified in fixed point, which are not the same as grid units in your map editor. To convert a grid unit to a fixed point, you multiply the coordinate by 65536, or use fixed point literals.
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. |
| ACS spawn functions | |
|---|---|
| Spawn | SpawnForced |
| SpawnSpot | SpawnSpotForced |
| SpawnSpotFacing | SpawnSpotFacingForced |
| SpawnProjectile | |