SpawnSpotFacing

int SpawnSpotFacing (str classname, int spottid [, int tid])

Usage

Like SpawnSpot, this will spawn an actor of the given type at the given mapspot. Like Thing_SpawnFacing, the thing will assume the angle of the mapspot it is spawned to.

The return value is the number of things spawned.

Examples

This script will spawn an imp at a mapspot with a tid of 1, facing the same direction as said mapspot and giving it a new tid of 2.

script 1 (void)
{
   SpawnSpotFacing("DoomImp", 1, 2);
}
ACS spawn functions
SpawnSpawnForced
SpawnSpotSpawnSpotForced
SpawnSpotFacingSpawnSpotFacingForced
SpawnProjectile
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.