Zh/Env entity maker: Difference between revisions
< Zh
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
==键值== | ==键值== | ||
{{KV|Point_template To Spawn (EntityTemplate)|target_destination|在'''此处'''生成<code>point_template</code>的名字}} | {{KV|Point_template To Spawn (EntityTemplate)|target_destination|在'''此处'''生成<code>point_template</code>的名字}} | ||
{{KV|PostSpawn Movement Speed (PostSpawnSpeed)|float|所有实体生成后,每秒会往'''PostSpawn Movement Direction'''的方向上运动多少[[ | {{KV|PostSpawn Movement Speed (PostSpawnSpeed)|float|所有实体生成后,每秒会往'''PostSpawn Movement Direction'''的方向上运动多少[[hammer units]]。}} | ||
{{KV|PostSpawn Movement Direction (PostSpawnDirection)|angle|所有从模板中生成的实体都会往这个方向上移动。}} | {{KV|PostSpawn Movement Direction (PostSpawnDirection)|angle|所有从模板中生成的实体都会往这个方向上移动。}} | ||
{{KV|PostSpawn Direction Variance (PostSpawnDirectionVariance)|float|The '''PostSpawn Movement Direction''' may vary by this many degrees. 这是半径。}} | {{KV|PostSpawn Direction Variance (PostSpawnDirectionVariance)|float|The '''PostSpawn Movement Direction''' may vary by this many degrees. 这是半径。}} |
Revision as of 21:08, 12 March 2019

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:点实体 它可以在env_entity_maker
坐标上,生成一个指定的point_template实体。 允许自动生成或者通过输入生成。
待完善: This template is currently using deprecated suf or {{Lang}}-based translations. Please use the main {{Code class}} instead, which uses {{Autolang}}.
在源代码中,它由 class
CEnvEntityMaker
代表,定义于 env_entity_maker.cpp
。
标志(Flags)
- 1: Enable AutoSpawn - 当有足够的空间且玩家没看见时,产生模板(Template)。
- 2: AutoSpawn: 等待实体被销毁。
- 4: AutoSpawn: 哪怕玩家看得见,也会生成。
- 8:
ForceSpawn
: 只有在足够的空间时,生成。 - 16:
ForceSpawn
: 只有玩家没看见时,生成。
键值
- Point_template To Spawn (EntityTemplate) ([todo internal name (i)]) <target_destination>
- 在此处生成
point_template
的名字
- PostSpawn Movement Speed (PostSpawnSpeed) ([todo internal name (i)]) <浮点型 >
- 所有实体生成后,每秒会往PostSpawn Movement Direction的方向上运动多少hammer units。
- PostSpawn Movement Direction (PostSpawnDirection) ([todo internal name (i)]) <angle >
- 所有从模板中生成的实体都会往这个方向上移动。
- PostSpawn Direction Variance (PostSpawnDirectionVariance) ([todo internal name (i)]) <浮点型 >
- The PostSpawn Movement Direction may vary by this many degrees. 这是半径。
- PostSpawn Inherit Angles (PostSpawnInheritAngles) ([todo internal name (i)]) <布尔值 >
- 如果是Yes,,则按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.