SpawnSpotFacingForced

From Eternity Wiki
(Redirected from SpawnSpotFacing)
Jump to navigationJump to search

ACS function[edit]

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

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

Creates things on top of tagged map spots. SpawnSpotFacing will not do anything if the spot is physically blocked, whereas SpawnSpotFacingForced will always do. Unlike SpawnSpot and SpawnSpotForced, the created things face in the directions of the tagged map spots, not in a parameter-given angle.

Parameters[edit]

  • classname: type of thing to spawn. Allows both Eternity and ZDoom compatibility names.
  • spottid: TID of map spots where to create the things. Target spots need not be of the designated "spawn spot" type.
  • tid: optional TID to give to the newly spawned things.

Return value[edit]

Returns the number of things spawned.

See also[edit]