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.


C++ 类层级
CPointPropUseTarget
CBaseEntity

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

键值

Name (目标名称) <target_source>[ Edit ]
这个名称是其他实体通过 输入/输出(en) 或其他 关键值(en)(如 parentnametarget) 来引用该实体时使用的标识符。
该名称也会显示在 Hammer 编辑器的 2D 视图和 实体报告(en) 中。
参见:  所有实体均可使用的 通用键值、输入与输出(en)

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
禁用该使用目标。

另见