SpawnSpotFacing

From ZDoom Wiki
Revision as of 15:53, 5 December 2013 by Gez (talk | contribs) (not limited to monsters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
Spawn SpawnForced
SpawnSpot SpawnSpotForced
SpawnSpotFacing SpawnSpotFacingForced
SpawnProjectile