vehicle_entityio
- Counter-Strike 2
- Dota 2
Point Entity
Vehicle which does nothing but fire outputs based on IN_BUTTONS, typically used for prototyping.
Keyvalues
-
Global Entity Name (
globalname
) <String
>
Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state. -
Entity Scripts (
vscripts
) <ScriptList
>
Name(s) of script files that are executed after all entities have spawned. -
Name (
targetname
) <TargetSource
>
The name that other entities refer to this entity by. -
Vehicle Subclass (
subclass_name
) <SubclassChoice
>
Subclass of the Vehicle. -
Start locked (
vehicle_locked
) <Boolean
> -
Button 1 (
button1
) <Choices
>
The button which fires the Button1-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 2 (
button2
) <Choices
>
The button which fires the Button2-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 3 (
button3
) <Choices
>
The button which fires the Button3-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 4 (
button4
) <Choices
>
The button which fires the Button4-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 5 (
button5
) <Choices
>
The button which fires the Button5-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 6 (
button6
) <Choices
>
The button which fires the Button6-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 7 (
button7
) <Choices
>
The button which fires the Button7-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 8 (
button8
) <Choices
>
The button which fires the Button8-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
Inputs
-
RunScriptFile <
String
>
Load and execute a script file -
RunScriptCode <
String
>
Execute a fragment of script code -
CallScriptFunction <
String
>
Call a script function -
CallPrivateScriptFunction <
String
>
Calls a script function from this entity's private script scope. -
CallGlobalScriptFunction <
String
>
Calls a script function in the global script scope. -
Kill <
Void
>
Removes this entity from the world. -
KillHierarchy <
Void
>
Removes this entity and all its children from the world. -
KillConstrained <
Void
>
Removes this entity, all its children, and anything constrained to it, from the world. -
AddOutput <
String
>
Adds an entity I/O connection to this entity. Parameter format: outputname>targetname>inputname>parameter>delay>max times to fire (-1 == infinite). Very dangerous, use with care. -
FireUser1 <
Void
>
Causes this entity's OnUser1 output to be fired. -
FireUser2 <
Void
>
Causes this entity's OnUser2 output to be fired. -
FireUser3 <
Void
>
Causes this entity's OnUser3 output to be fired. -
FireUser4 <
Void
>
Causes this entity's OnUser4 output to be fired. -
Lock <
Void
>
Prevent passengers from entering or exiting the vehicle. -
Unlock <
Void
>
Re-allow passengers to enter or exit the vehicle.
Outputs
-
OnUser1 <
Void
>
Fired in response to FireUser1 input. -
OnUser2 <
Void
>
Fired in response to FireUser2 input. -
OnUser3 <
Void
>
Fired in response to FireUser3 input. -
OnUser4 <
Void
>
Fired in response to FireUser4 input. -
OnKilled <
Void
>
Fired when the entity is killed and removed from the game. Parameter is the inflictor. -
PassengerEntered <
Integer
>
Passenger entered the vehicle (argument is passenger index) -
PassengerExited <
Integer
>
Passenger exited the vehicle (argument is passenger index) -
OnButtonStart1 <
Integer
>
Passenger started hitting button 1 (argument is passenger index) -
OnButtonEnd1 <
Integer
>
Passenger stopped hitting button 1 (argument is passenger index) -
OnButtonStart2 <
Integer
>
Passenger started hitting button 1 (argument is passenger index) -
OnButtonEnd2 <
Integer
>
Passenger stopped hitting button 2 (argument is passenger index) -
OnButtonStart3 <
Integer
>
Passenger started hitting button 3 (argument is passenger index) -
OnButtonEnd3 <
Integer
>
Passenger stopped hitting button 3 (argument is passenger index) -
OnButtonStart4 <
Integer
>
Passenger started hitting button 4 (argument is passenger index) -
OnButtonEnd4 <
Integer
>
Passenger stopped hitting button 4 (argument is passenger index) -
OnButtonStart5 <
Integer
>
Passenger started hitting button 5 (argument is passenger index) -
OnButtonEnd5 <
Integer
>
Passenger stopped hitting button 5 (argument is passenger index) -
OnButtonStart6 <
Integer
>
Passenger started hitting button 6 (argument is passenger index) -
OnButtonEnd6 <
Integer
>
Passenger stopped hitting button 6 (argument is passenger index) -
OnButtonStart7 <
Integer
>
Passenger started hitting button 7 (argument is passenger index) -
OnButtonEnd7 <
Integer
>
Passenger stopped hitting button 7 (argument is passenger index) -
OnButtonStart8 <
Integer
>
Passenger started hitting button 8 (argument is passenger index) -
OnButtonEnd8 <
Integer
>
Passenger stopped hitting button 8 (argument is passenger index)
Point Entity
Vehicle which does nothing but fire outputs based on IN_BUTTONS, typically used for prototyping.
Keyvalues
-
Global Entity Name (
globalname
) <String
>
Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state. -
Entity Scripts (
vscripts
) <ScriptList
>
Name(s) of script files that are executed after all entities have spawned. -
Name (
targetname
) <TargetSource
>
The name that other entities refer to this entity by. -
Vehicle Subclass (
subclass_name
) <SubclassChoice
>
Subclass of the Vehicle. -
Start locked (
vehicle_locked
) <Boolean
> -
Button 1 (
button1
) <Choices
>
The button which fires the Button1-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 2 (
button2
) <Choices
>
The button which fires the Button2-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 3 (
button3
) <Choices
>
The button which fires the Button3-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 4 (
button4
) <Choices
>
The button which fires the Button4-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 5 (
button5
) <Choices
>
The button which fires the Button5-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 6 (
button6
) <Choices
>
The button which fires the Button6-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 7 (
button7
) <Choices
>
The button which fires the Button7-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
-
Button 8 (
button8
) <Choices
>
The button which fires the Button8-related outputs.- IN_NONE
- IN_ATTACK
- IN_JUMP
- IN_DUCK
- IN_FORWARD
- IN_BACK
- IN_MOVELEFT
- IN_MOVERIGHT
- IN_ATTACK2
- IN_RELOAD
Inputs
-
RunScriptFile <
String
>
Load and execute a script file -
RunScriptCode <
String
>
Execute a fragment of script code -
CallScriptFunction <
String
>
Call a script function -
CallPrivateScriptFunction <
String
>
Calls a script function from this entity's private script scope. -
CallGlobalScriptFunction <
String
>
Calls a script function in the global script scope. -
Kill <
Void
>
Removes this entity from the world. -
KillHierarchy <
Void
>
Removes this entity and all its children from the world. -
KillConstrained <
Void
>
Removes this entity, all its children, and anything constrained to it, from the world. -
AddOutput <
String
>
Adds an entity I/O connection to this entity. Parameter format: outputname>targetname>inputname>parameter>delay>max times to fire (-1 == infinite). Very dangerous, use with care. -
FireUser1 <
Void
>
Causes this entity's OnUser1 output to be fired. -
FireUser2 <
Void
>
Causes this entity's OnUser2 output to be fired. -
FireUser3 <
Void
>
Causes this entity's OnUser3 output to be fired. -
FireUser4 <
Void
>
Causes this entity's OnUser4 output to be fired. -
Lock <
Void
>
Prevent passengers from entering or exiting the vehicle. -
Unlock <
Void
>
Re-allow passengers to enter or exit the vehicle.
Outputs
-
OnUser1 <
Void
>
Fired in response to FireUser1 input. -
OnUser2 <
Void
>
Fired in response to FireUser2 input. -
OnUser3 <
Void
>
Fired in response to FireUser3 input. -
OnUser4 <
Void
>
Fired in response to FireUser4 input. -
OnKilled <
Void
>
Fired when the entity is killed and removed from the game. Parameter is the inflictor. -
PassengerEntered <
Integer
>
Passenger entered the vehicle (argument is passenger index) -
PassengerExited <
Integer
>
Passenger exited the vehicle (argument is passenger index) -
OnButtonStart1 <
Integer
>
Passenger started hitting button 1 (argument is passenger index) -
OnButtonEnd1 <
Integer
>
Passenger stopped hitting button 1 (argument is passenger index) -
OnButtonStart2 <
Integer
>
Passenger started hitting button 1 (argument is passenger index) -
OnButtonEnd2 <
Integer
>
Passenger stopped hitting button 2 (argument is passenger index) -
OnButtonStart3 <
Integer
>
Passenger started hitting button 3 (argument is passenger index) -
OnButtonEnd3 <
Integer
>
Passenger stopped hitting button 3 (argument is passenger index) -
OnButtonStart4 <
Integer
>
Passenger started hitting button 4 (argument is passenger index) -
OnButtonEnd4 <
Integer
>
Passenger stopped hitting button 4 (argument is passenger index) -
OnButtonStart5 <
Integer
>
Passenger started hitting button 5 (argument is passenger index) -
OnButtonEnd5 <
Integer
>
Passenger stopped hitting button 5 (argument is passenger index) -
OnButtonStart6 <
Integer
>
Passenger started hitting button 6 (argument is passenger index) -
OnButtonEnd6 <
Integer
>
Passenger stopped hitting button 6 (argument is passenger index) -
OnButtonStart7 <
Integer
>
Passenger started hitting button 7 (argument is passenger index) -
OnButtonEnd7 <
Integer
>
Passenger stopped hitting button 7 (argument is passenger index) -
OnButtonStart8 <
Integer
>
Passenger started hitting button 8 (argument is passenger index) -
OnButtonEnd8 <
Integer
>
Passenger stopped hitting button 8 (argument is passenger index)