Template:O Item: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m ({{plact}})
m (→‎top: Substituted IO templates)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{o targetname}}
{{minititle|Item}}
* '''OnPlayerTouch'''
{{O|OnPlayerTouch|Fires when the player touches this item. {{ent|!activator}} is the player.}}
: Fires when the player touches this object. {{plact}}
{{O|OnCacheInteraction|This output fires when the player proves they have "found" this item.
:Fires on:
:*Player Touch (whether or not player actually acquires the item).
:*Picked up by {{ent|+use}}.
:*Picked up by gravity gun.
:*Punted by gravity gun.}}<noinclude>
[[Category:Output Templates|Item]]
</noinclude>

Latest revision as of 13:11, 21 April 2025

Item:

OnPlayerTouch
Fires when the player touches this item. !activator is the player.
OnCacheInteraction
This output fires when the player proves they have "found" this item.
Fires on:
  • Player Touch (whether or not player actually acquires the item).
  • Picked up by +use.
  • Picked up by gravity gun.
  • Punted by gravity gun.