Env entity maker: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Robot: fixing template case.) |
||
Line 11: | Line 11: | ||
*'''EntityTemplate''' <target_destination> | *'''EntityTemplate''' <target_destination> | ||
:Name of the [[point_template]] to spawn '''here'''. | :Name of the [[point_template]] to spawn '''here'''. | ||
* '''{{ | * '''{{EP1 add|PostSpawnSpeed}}''' | ||
: <float> If specified, all the entities created in the template will move this fast in the specified PostSpawn Movement Direction. | : <float> If specified, all the entities created in the template will move this fast in the specified PostSpawn Movement Direction. | ||
* '''{{ | * '''{{EP1 add|PostSpawnDirection}}''' | ||
: <angle> If a PostSpawn Movement Speed is specified, all the entities created in the template will move in this direction. | : <angle> If a PostSpawn Movement Speed is specified, all the entities created in the template will move in this direction. | ||
* '''{{ | * '''{{EP1 add|PostSpawnDirectionVariance}} | ||
: <float> This variance is applied to the PostSpawn Movement Direction for each spawned entity in the template. Use it to apply some randomness to the directions. | : <float> This variance is applied to the PostSpawn Movement Direction for each spawned entity in the template. Use it to apply some randomness to the directions. | ||
Revision as of 19:19, 19 January 2009
Template:Wrongtitle Template:Base point
Entity Description
Spawns the specified entity template at its origin. If set to auto-spawn, it will spawn the template whenever there's room and the player is looking elsewhere.
Keyvalues
- Template:Kv targetname
- Template:Kv parentname
- Template:Kv angles
- EntityTemplate <target_destination>
- Name of the point_template to spawn here.
- PostSpawnSpeed (in all games since
)
- <float> If specified, all the entities created in the template will move this fast in the specified PostSpawn Movement Direction.
- PostSpawnDirection (in all games since
)
- <angle> If a PostSpawn Movement Speed is specified, all the entities created in the template will move in this direction.
- PostSpawnDirectionVariance (in all games since
)
- <float> This variance is applied to the PostSpawn Movement Direction for each spawned entity in the template. Use it to apply some randomness to the directions.
Flags
- 1 : Enable AutoSpawn (will spawn whenever there's room)
- 2 : AutoSpawn: Wait for entity destruction
- 4 : AutoSpawn: Even if the player is looking
- 8 : ForceSpawn: Only if there's room
- 16 : ForceSpawn: Only if the player isn't looking
Inputs
- Template:I targetname
- Template:I parentname
- ForceSpawn
- Spawn an instance of the template at this origin and angle.
- Spawn an instance of the template that the same origin and angle as the specified entity (specify by targetname in parameters)
Outputs
- Template:O targetname
- 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.
Usage
To make an entity spawn in the same position as it is shown in hammer leave the postspawn properties as 0 and make sure that the point_template entity is in the position on the map as the env_entity_maker because entities will be moved from shwon position by that that the env_entity_maker is moved from the point_template