point_prop_use_target

From Valve Developer Community
< Zh
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)

This page was translated by DaKang233 on May 9, 2025 (UTC+8). Anyone is welcome to add new content or fix errors.


类层级
CPointPropUseTarget
CBaseEntity

point_prop_use_target是一个点实体(en),可在求生之路2 求生之路2中使用。 它是携带的道具的使用目标。会触发道具使用行为。这是一个让玩家靠近以「灌油」或者「放入可乐」的点实体。目前只有汽油桶和可乐道具可以使用。

键值

参见:  Generic Keyvalues, Inputs and Outputs available to all entities
Name(en) (targetname) <target_source>
其他实体引用该实体的目标名称。
Gas nozzle (nozzle) <target_destination>
用于此 use_target (清道夫模式) 的 prop_dynamic 灌油口实体的目标名。

标志

Useable by Gas Can 可被汽油桶使用 : [1]
Useable by Cola Bottles 可被可乐使用 : [2]

输出

OnUseStarted
!activator = !caller = this entity
当玩家开始使用该目标时触发。
OnUseCancelled
!activator = !caller = this entity
当玩家取消使用时触发。
OnUseFinished
!activator = !caller = this entity
当玩家完成使用时触发。

输入

Activate
激活该使用目标。
Deactivate
禁用该使用目标。

另见