Create Entites¶
Created entites do not spawn until they are dispatched. Some script wrappers may dispatch entites themselves.
Getting entities is documented here.
Internal Factories¶
-
entity CreateProp(string type, vector origin, string s1, number n1)¶
-
void DispatchSpawn(entity ent)¶
Tells the specified entity to spawn. Should only be called once per entity.
-
entity Entities_CreateByClassname(string className)¶
-
entity Entities_CreateProjectileByClassname(string entName, string weaponClassName)¶
-
entity Entities_CreateByTemplate(string template)¶
-
array Entities_CreateByTemplateMultiple(string template)¶
Create zero or more entities from templates that match the given string, and return them as an array. Wildcards allowed.
All array contents are entites but the array is not typed itself.
-
array Entities_CreateByPointTemplates(string matchingString, vector origin, vector angles)¶
Create zero or more entities from point-templates that match the given string, and return them as an array. Wildcards allowed
-
entity CreateWeaponEntityByName(string weaponName, vector origin, vector angles)¶
-
entity CreateWeaponEntityByNameConstrained(string name, vector origin, vector angles)¶
-
entity CreateWeaponEntityByNameWithPhysics(string name, vector origin, vector angles)¶
Interactable Props¶
-
entity CreateTurretEnt(vector origin, vector angles, entity ownerEnt, asset turretModel, string turretSettingsName)¶
-
entity CreateControlPanelEnt(vector origin, vector angles, entity ownerEnt, asset model)¶
Script Wrappers¶
Note
These are defined in ai/_ai_spawn.gnut`
Titans¶
-
entity CreateArcTitan(int team, vector origin, vector angles, array<string> settingsMods =
[]
)¶
-
entity CreateAtlas(int team, vector origin, vector angles, array<string> settingsMods =
[]
)¶
-
entity CreateHenchTitan(string titanType, vector origin, vector angles)¶
-
entity CreateNPCTitan(string settings, int team, vector origin, vector angles, array<string> settingsMods =
[]
)¶
-
entity CreateOgre(int team, vector origin, vector angles, array<string> settingsMods =
[]
)¶
Drones¶
-
entity CreateFragDrone(int team, vector origin, vector angles)¶
-
entity CreateFragDroneCan(int team, vector origin, vector angles)¶
Creates an unarmed drone
-
entity CreateGenericDrone(int team, vector origin, vector angles)¶
-
entity CreateRocketDrone(int team, vector origin, vector angles)¶
-
entity CreateShieldDrone(int team, vector origin, vector angles)¶
Common¶
-
entity CreateElitePilot(int team, vector origin, vector angles)¶
-
entity CreateElitePilotAssassin(int team, vector origin, vector angles)¶
-
entity CreateSoldier(int team, vector origin, vector angles)¶
-
entity CreateRocketDroneGrunt(int team, vector origin, vector angles)¶
-
entity CreateShieldDroneGrunt(int team, vector origin, vector angles)¶
-
entity CreateSpectre(int team, vector origin, vector angles)¶
-
entity CreateStalker(int team, vector origin, vector angles)¶
-
entity CreateStryder(int team, vector origin, vector angles, array<string> settingsMods =
[]
)¶
-
entity CreateSuperSpectre(int team, vector origin, vector angles)¶
-
entity CreateZombieStalker(int team, vector origin, vector angles)¶
-
entity CreateZombieStalkerMossy(int team, vector origin, vector angles)¶
-
entity CreateMarvin(int team, vector origin, vector angles)¶
-
entity CreateWorkerDrone(int team, vector origin, vector angles)¶
-
entity CreateProwler(int team, vector origin, vector angles)¶
-
entity CreateGunship(int team, vector origin, vector angles)¶
-
entity CreateNPC(string baseClass, int team, vector origin, vector angles)¶
-
entity CreateNPCFromAISettings(string aiSettings, int team, vector origin, vector angles)¶