Usage
returns entity handle of the spawned entity
parameters string classname of entity to spawn
sys.spawn("speaker"); entity bigBadMonstar; bigBadMonstar = sys.spawn("monster_gladiator");
Notes
- spawn creates any entity type in the game. Use the classnames found in the def files, not in the game code. For example, you would spawn a "monster_tactical_blaster", not "rvAITactical"
- Unless instructed otherwise, a spawned creature is spawned at map location (0,0,0) and given a name [classname][underscore][assigned entity number]. An example would be "monster_grunt_135"
Using the setSpawnArg command, you can preordain any keyvalue