MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / Event_Spawn

Method Event_Spawn

neo/d3xp/script/Script_Thread.cpp:1151–1158  ·  view source on GitHub ↗

================ idThread::Event_Spawn ================ */

Source from the content-addressed store, hash-verified

1149================
1150*/
1151void idThread::Event_Spawn( const char *classname ) {
1152 idEntity *ent;
1153
1154 spawnArgs.Set( "classname", classname );
1155 gameLocal.SpawnEntityDef( spawnArgs, &ent );
1156 ReturnEntity( ent );
1157 spawnArgs.Clear();
1158}
1159
1160/*
1161================

Callers

nothing calls this directly

Calls 3

SetMethod · 0.45
SpawnEntityDefMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected