Template:O BaseDriveableVehicle: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
No edit summary
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{o basevehicle}}
{{lang|Template:O BaseDriveableVehicle}}
* '''PlayerOn'''
<onlyinclude>{{minititle|BaseDriveableVehicle}}
: Player entered the vehicle
{{O|PlayerOn|param=void}}
* '''PlayerOff'''
{{O|PlayerOff|param=void|activator=the player|Player entered/exited the vehicle.}}
: Player exited the vehicle
{{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 <string>'''
[[Category:Output Templates|BaseDriveableVehicle]]
: State of attack button [0,1]
* '''Attack2Axis <string>'''
: State of attack2 button [0,1]

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.