Template:O BaseDriveableVehicle: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
No edit summary
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{O BaseVehicle}}
{{lang|Template:O BaseDriveableVehicle}}
* '''PlayerOn'''
<onlyinclude>{{minititle|BaseDriveableVehicle}}
: Player entered the vehicle. {{PlAct}}
{{O|PlayerOn|param=void}}
* '''PlayerOff'''
{{O|PlayerOff|param=void|activator=the player|Player entered/exited the vehicle.}}
: Player exited the vehicle. {{PlAct}}
{{O|PressedAttack|param=void}}
* '''PressedAttack'''
{{O|PressedAttack2|ac-is-this=1|param=void|Player pressed the <code>+attack</code>/<code>+attack2</code> key.}}
: Player Pressed attack key
{{O|AttackAxis|param=float}}
* '''PressedAttack2'''
{{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.}}
: Player Pressed attack2 key
</onlyinclude>
* '''AttackAxis {{boolean}}'''
[[Category:Output Templates|BaseDriveableVehicle]]
: State of attack button. Also called when player exits vehicle
* '''Attack2Axis {{boolean}}'''
: State of attack2 button. Also called when player exits vehicle

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.