Template:O BaseDriveableVehicle: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{ScrollBox|title=BaseDriveableVehicle|
{{lang|Template:O BaseDriveableVehicle}}
; <code>PlayerOn</code>
<onlyinclude>{{minititle|BaseDriveableVehicle}}
; <code>PlayerOff</code>
{{O|PlayerOn|param=void}}
: Player entered/exited the vehicle. {{PlAct}}
{{O|PlayerOff|param=void|activator=the player|Player entered/exited the vehicle.}}
; <code>PressedAttack</code>
{{O|PressedAttack|param=void}}
; <code>PressedAttack2</code>
{{O|PressedAttack2|ac-is-this=1|param=void|Player pressed the <code>+attack</code>/<code>+attack2</code> key.}}
: Player pressed the +attack/+attack2 key
{{O|AttackAxis|param=float}}
; <code>AttackAxis <[[bool]]></code>
{{O|Attack2Axis|activator=the player when exitting the vehicle other-wise it's this entity|param=float|State of the <code>attack</code>/<code>attack2</code> buttons (can only be 0 or 1). Also called when the player exits the vehicle.}}
; <code>Attack2Axis <bool></code>
</onlyinclude>
: State of attack/attack2 button. Also called when the player exits the vehicle.
[[Category:Output Templates|BaseDriveableVehicle]]
{{O BaseVehicle}}
}}

Latest revision as of 06:05, 7 May 2025

BaseDriveableVehicle:

PlayerOn <void>
PlayerOff <void>
!activator = the player
!caller = this entity
Player entered/exited the vehicle.
PressedAttack <void>
PressedAttack2 <void>
!activator = !caller = this entity
Player pressed the +attack/+attack2 key.
AttackAxis <float>
Attack2Axis <float>
!activator = the player when exitting the vehicle other-wise it's this entity
!caller = this entity
State of the attack/attack2 buttons (can only be 0 or 1). Also called when the player exits the vehicle.