squadmaker - baso88/SC_AngelScript GitHub Wiki
squadmaker is an entity which allows you to spawn any amount of a specific monster type. It can also be used to spawn other entities as well, though only partially supported. Detailed description of the entity can be found here.
You may optionally specify a function name (not including return type or arguments) using a keyvalue named function_name
.
When specified, the function will be called every time the squadmaker spawns a new monster.
Function signature
The function has the following format:
void FunctionName(CBaseMonster@ pSquadmaker, CBaseEntity@ pMonster)
API availability
squadmaker can only use functions defined in map scripts.