Env entity maker
< Zh
Jump to navigation
Jump to search

This page has not been fully translated.
You can help by finishing the translation.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.
This notice is put here by LanguageBar template and if you want to remove it after updating the translation you can do so on this page.
You can help by finishing the translation.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.
This notice is put here by LanguageBar template and if you want to remove it after updating the translation you can do so on this page.
Template:Base point It spawns a specified point_template entity at the env_entity_maker
's origin. It can be set to spawn automatically or through inputs.
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
- Point_template To Spawn (EntityTemplate) ([todo internal name (i)]) <target_destination>
- Name of the
point_template
to spawn here.
- PostSpawn Movement Speed (PostSpawnSpeed) ([todo internal name (i)]) <浮点型 >
- All entities spawned will move this many hammer units per second in the direction of PostSpawn Movement Direction.
- PostSpawn Movement Direction (PostSpawnDirection) ([todo internal name (i)]) <angle >
- All entities spawned in the template will move in this direction.
- PostSpawn Direction Variance (PostSpawnDirectionVariance) ([todo internal name (i)]) <浮点型 >
- The PostSpawn Movement Direction may vary by this many degrees. This is a radius.
- PostSpawn Inherit Angles (PostSpawnInheritAngles) ([todo internal name (i)]) <布尔值 >
- 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 <target_destination>
- 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.