Difference between revisions of "Template:O BaseDriveableVehicle"

From Valve Developer Community
Jump to: navigation, search
(Reformatted to use IO templates, added to Output Templates category)
 
Line 1: Line 1:
 
{{ScrollBox|title=BaseDriveableVehicle|
 
{{ScrollBox|title=BaseDriveableVehicle|
; <code>PlayerOn</code>
+
{{IO|PlayerOn}}
; <code>PlayerOff</code>
+
{{IO|PlayerOff|Player entered/exited the vehicle. {{PlAct}}}}
: Player entered/exited the vehicle. {{PlAct}}
+
{{IO|PressedAttack}}
; <code>PressedAttack</code>
+
{{IO|PressedAttack2|Player pressed the <code>+attack</code>/<code>+attack2</code> key.}}
; <code>PressedAttack2</code>
+
{{IO|AttackAxis|param=bool}}
: Player pressed the +attack/+attack2 key
+
{{IO|Attack2Axis|param=bool|State of the <code>attack</code>/<code>attack2</code> buttons. Also called when the player exits the vehicle.}}
; <code>AttackAxis <[[bool]]></code>
+
{{O Targetname}}
; <code>Attack2Axis <bool></code>
+
}}<noinclude>
: State of attack/attack2 button. Also called when the player exits the vehicle.
+
[[Category:Output Templates|BaseDriveableVehicle]]
{{O BaseVehicle}}
+
</noinclude>
}}
 

Latest revision as of 19:30, 23 January 2020

BaseDriveableVehicle:

PlayerOn
PlayerOff
Player entered/exited the vehicle. (activator is the player)
PressedAttack
PressedAttack2
Player pressed the +attack/+attack2 key.
AttackAxis <boolean>
Attack2Axis <boolean>
State of the attack/attack2 buttons. Also called when the player exits the vehicle.

Targetname:

OnUser1 to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnKilled  (only in <Left 4 Dead> <Left 4 Dead 2>)
This output fires when the entity is killed and removed from the game.