Template:O BaseTank: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates)
m (→‎top: Substituted IO templates)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{minititle|BaseTank}}
{{ {{PAGENAME}} |startcollapsed=0}}
{{IO|OnFire|Fires when the tank fires its bullets.}}
<includeonly>
{{IO|OnAquireTarget|Fires when target is newly in range and can be shot.}}
 
{{IO|OnLoseTarget|Fires when when target goes out of range.}}
<onlyinclude>{{Expand|title=BaseTank outputs|startcollapsed={{{startcollapsed|1}}}|
{{IO|OnAmmoDepleted|DO NOT USE. Exists in code, but never coded to fire at any point.}}
{{O|OnFire|Fires when the tank fires its bullets.}}
{{IO|OnGotController|Fires when an NPC starts to control this tank. Players do NOT fire this input.}}
{{O|OnAquireTarget|Fires when target is newly in range and can be shot.}}
{{IO|OnGotPlayerController|Fires when a Player starts to control this tank. NPCs do NOT fire this input.}}
{{O|OnLoseTarget|Fires when when target goes out of range.}}
{{IO|OnLostController|Fires when the NPC controller of the tank stops controlling it. Players do NOT fire this input.}}
{{O|OnAmmoDepleted|DO NOT USE. Exists in code, but never coded to fire at any point.}}
{{IO|OnLostPlayerController|Fires when the Player controller of the tank stops controlling it. NPCs do NOT fire this input.}}
{{O|OnGotController|Fires when an NPC starts to control this tank. Players do NOT fire this input.}}
{{IO|OnReadyToFire|Fires once when the tank spawns, or is done waiting to fire between rounds. Useful for playing a reloading/charging/searching sound possibly.}}<noinclude>[[Category:Output Templates|BaseTank]]</noinclude>
{{O|OnGotPlayerController|Fires when a Player starts to control this tank. NPCs do NOT fire this input.}}
{{O|OnLostController|Fires when the NPC controller of the tank stops controlling it. Players do NOT fire this input.}}
{{O|OnLostPlayerController|Fires when the Player controller of the tank stops controlling it. NPCs do NOT fire this input.}}
{{O|OnReadyToFire|Fires once when the tank spawns, or is done waiting to fire between rounds. Useful for playing a reloading/charging/searching sound possibly.}}
}}</onlyinclude>
 
</includeonly>
[[Category:Output Templates|BaseTank]]

Latest revision as of 13:03, 21 April 2025

BaseTank outputs
OnFire
Fires when the tank fires its bullets.
OnAquireTarget
Fires when target is newly in range and can be shot.
OnLoseTarget
Fires when when target goes out of range.
OnAmmoDepleted
DO NOT USE. Exists in code, but never coded to fire at any point.
OnGotController
Fires when an NPC starts to control this tank. Players do NOT fire this input.
OnGotPlayerController
Fires when a Player starts to control this tank. NPCs do NOT fire this input.
OnLostController
Fires when the NPC controller of the tank stops controlling it. Players do NOT fire this input.
OnLostPlayerController
Fires when the Player controller of the tank stops controlling it. NPCs do NOT fire this input.
OnReadyToFire
Fires once when the tank spawns, or is done waiting to fire between rounds. Useful for playing a reloading/charging/searching sound possibly.