source-2-wiki

Unofficial Source 2 Wiki

View on GitHub

CEnvEntityMaker

Methods

SpawnEntityAtEntityOrigin

void SpawnEntityAtEntityOrigin(handle hEntity)
Create an entity at the location of a specified entity instance

SpawnEntityAtNamedEntityOrigin

void SpawnEntityAtNamedEntityOrigin(string pszName)
Create an entity at the location of a named entity

SpawnEntityAtLocation

void SpawnEntityAtLocation(Vector vecAlternateOrigin, Vector vecAlternateAngles)
Create an entity at a specified location and orientaton, orientation is Euler angle in degrees (pitch, yaw, roll)

SpawnEntity

void SpawnEntity()
Create an entity at the location of the maker