SpawnSpot: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
 
Line 15: Line 15:
Spawns one or more things of class ''type'' at the map spot things tagged as ''spottid''. It optionally tags them with ''tid'' if non-zero. They will all face in direction of ''angle''.
Spawns one or more things of class ''type'' at the map spot things tagged as ''spottid''. It optionally tags them with ''tid'' if non-zero. They will all face in direction of ''angle''.


Spawning will fail for any map spots blocked by other solid things. This function will only return the number of actual spawned objects. Also, no teleportation fog will be produced.
Spawning will fail for any map spots blocked by other solid things. It will not telefrag. This function will only return the number of actual spawned objects. Also, no teleportation fog will be produced.


==See also==
==See also==

Latest revision as of 15:04, 1 April 2020

ACS function[edit]

Syntax[edit]

int SpawnSpot(str type, int spottid, int tid, int angle)

Arguments[edit]

  • type: name of class of thing to spawn. Supports both actual names as defined in EDF thingtypes, and compatname values, based on the names from ZDoom.
  • spottid: TID of position things (usually map spots, but not required so) where to spawn things of class type.
  • tid: optional TID to give to the newly spawned things.
  • angle: byte angle where the newly spawned things should look.

Return value[edit]

Returns the number of things successfully spawned.

Remarks[edit]

Spawns one or more things of class type at the map spot things tagged as spottid. It optionally tags them with tid if non-zero. They will all face in direction of angle.

Spawning will fail for any map spots blocked by other solid things. It will not telefrag. This function will only return the number of actual spawned objects. Also, no teleportation fog will be produced.

See also[edit]