Module core.plugins.perma_ents.sv_init

Fixed Entity Spawning System.

Module Overview

Functions

RegisterPermanentEntity(class, position, angle, regMap) Register a permanent entity.
DeleteMapEntity(id, regMap) Delete a map entity on startup based on its map creation ID.

Functions

RegisterPermanentEntity(class, position, angle, regMap)
Register a permanent entity.

Parameters:

  • class The class of the entity.
  • position The position of the entity to be spawned at. Alternatly, can also take a table containing the save-data.
  • angle The angle of the entity.
  • regMap Optional argument to specify a map to spawn on. If nil, replaced with the last SetDefaultMap argument.
DeleteMapEntity(id, regMap)
Delete a map entity on startup based on its map creation ID.

Parameters:

  • id Map creation ID to delete.
  • regMap Optional argument to specify a map to spawn on. If nil, replaced with the last SetDefaultMap argument.