Template:O
来自Valve Developer Community
跳转到导航
跳转到搜索

文档页面 Template:O/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
Template to be used of entity outputs. For inputs use {{I}}
Parameters
- {{{activator}}} - adds little grey text starting with
!activator = {{{activator}}}
. Deprecates {{activator}}. - {{{caller}}} - adds little grey text starting with
!caller =
.
If activator is specified and caller is not, this defaults tothis entity
(so make sure to check caller too and ensure this is correct if adding activator parameter). If caller=hide, this won't be shown. - {{{ac-is-this}}} - if specified then activator/caller params are ignored and grey text will say
!activator = !caller = this entity
- other params identical to Template:I
Examples
- OnUser1
- !activator = activator of FireUser1 input
!caller = this entity
Fired in response to FireUser1 input
- OnGetValue <浮点型(en)>
- !activator = activator of GetValue input
!caller = caller of GetValue input
Fired in response to theGetValue
input; used when you don't want constant updates from theOutValue
output.
If the Target Input's parameters is left empty, the math_counter's value is used.Tip:Useful for entities such as: logic_case,math_remap,logic_compare.
- OnUnblockedClosing
- !activator = !caller = this entity
Fired when the door is no longer blocked from closing.
- OnItemPickedUp
- !activator = !caller = NULL
Fired when this spawner's scavenge item is picked up by a player.
See also