Env entity maker/en
Language subpage
This subpage is used on the Env entity maker page to display content in English.
If you have edited the language subpage, do not forget to purge the base page by clicking on the button on the right. Otherwise, its contents will not be updated.
env_entity_maker | |
---|---|
Type | Point entity |
Engine | Source |
Availability | In all games |
class hierarchy |
---|
CEnvEntityMaker defined in env_entity_maker.cpp
|
It spawns a specified point_template
entity at the env_entity_maker
's origin. It can be set to spawn automatically or through inputs.
Contents
Flags
- [
1
] : Enable AutoSpawn Spawn template whenever there's enough room to fit it, and the player is not looking.
- [
2
] : AutoSpawn: Wait for entity to be destroyed.
- [
4
] : AutoSpawn: Spawn even if the player is looking.
- [
8
] : ForceSpawn: Spawn only if there's enough room to fit the object.
- [
16
] : ForceSpawn: Spawn only if the player isn't looking.
Keyvalues
Targetname:
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
- Point_template To Spawn
(EntityTemplate)
<targetname> - Name of the
point_template
to spawn here.
- PostSpawn Movement Speed
(PostSpawnSpeed)
<float> - All entities spawned will move this many hammer units per second in the direction of PostSpawn Movement Direction.
- PostSpawn Movement Direction
(PostSpawnDirection)
<angle> - All entities spawned in the template will move in this direction.
- PostSpawn Direction Variance
(PostSpawnDirectionVariance)
<float> - The PostSpawn Movement Direction may vary by this many degrees. This is a radius.
- PostSpawn Inherit Angles
(PostSpawnInheritAngles)
<boolean> - If Yes, offset the spawn angles by the angles of a Parent.
Inputs
ForceSpawn
- Spawn an instance of the template at this origin and angle.
ForceSpawnAtEntityOrigin
<targetname>- Spawn an instance of the template at the same origin and angles as a specified entity.
Outputs
OnEntitySpawned
- Fired when an instance of the entity template has been spawned.
OnEntityFailedSpawn
- Fired when a
ForceSpawn
input failed to spawn the template, either due to lack of space or being in player's view, depending on the spawnflags.