Template:Archived Page History/Env entity maker/en: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added infotable)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Language subpage}}<!-- Add the categories to the main page, not here -->
{{APH|env_entity_maker}}
 
{{infotable
|env_entity_maker
|img=[[File:Env entity maker.png]]
|type=e0
|engine=2
|in=0
}}
 
{{CD|CEnvEntityMaker|file1=env_entity_maker.cpp}}
It spawns a specified {{Ent|point_template}} entity at the <code>env_entity_maker</code>'s [[origin]]. It can be set to spawn automatically or through inputs.
 
 
== Flags ==
{{fl|1|Enable AutoSpawn Spawn template whenever there's enough room to fit it, and the player is not looking.}}
{{fl|2|AutoSpawn: Wait for entity to be destroyed.}}
{{fl|4|AutoSpawn: Spawn even if the player is looking.}}
{{fl|8|ForceSpawn: Spawn only if there's enough room to fit the object.}}
{{fl|16|ForceSpawn: Spawn only if the player isn't looking.}}
 
== Keyvalues ==
{{KV Targetname}}
{{KV|Point_template To Spawn|intn=EntityTemplate|target_destination|Name of the <code>point_template</code> to spawn ''here''.}}
{{KV|PostSpawn Movement Speed|intn=PostSpawnSpeed|float|All entities spawned will move this many [[hammer units]] per second in the direction of '''PostSpawn Movement Direction'''.}}
{{KV|PostSpawn Movement Direction|intn=PostSpawnDirection|angle|All entities spawned in the template will move in this direction.}}
{{KV|PostSpawn Direction Variance|intn=PostSpawnDirectionVariance|float|The '''PostSpawn Movement Direction''' may vary by this many degrees. This is a radius.}}
{{KV|PostSpawn Inherit Angles|intn=PostSpawnInheritAngles|boolean|If '''Yes''', offset the spawn angles by the angles of a '''Parent'''.}}
 
== Inputs ==
{{IO|ForceSpawn|Spawn an instance of the template at this origin and angle.}}
{{IO|ForceSpawnAtEntityOrigin|param=target_destination|Spawn an instance of the template at the same origin and angles as a specified entity.}}
 
== Outputs ==
{{IO|OnEntitySpawned|Fired when an instance of the entity template has been spawned.}}
{{IO|OnEntityFailedSpawn|Fired when a <code>ForceSpawn</code> input failed to spawn the template, either due to lack of space or being in player's view, depending on the spawnflags.}}

Latest revision as of 14:24, 18 August 2024

Note.pngNote:Archived rest of page history of page env_entity_maker
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.