Template:O Item: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎top: Substituted IO templates)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{O Targetname}}
{{minititle|Item}}
 
{{O|OnPlayerTouch|Fires when the player touches this item. {{ent|!activator}} is the player.}}
{{IO|OnPlayerTouch|Fires when the player touches this object {{PlAct}}. }}
{{O|OnCacheInteraction|This output fires when the player proves they have "found" this item.
 
:Fires on:
{{IO|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 Physcannon, Punted by Physcannon.}}
:*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.