SlashCo Wiki

SlashCo.Spawn

  SlashCo.Spawn( table elements, function spawnFunc = nil )

Description

Activates a list of spawn points.
Each entry with a SpawnEnt method is spawned.
An optional callback can be used to modify an entity before it is spawned.

Arguments

1table elements

Sequential table of spawn entities

2function spawnFunc = nil

Optional callback called with each spawn entity before SpawnEnt is invoked