Template:I BaseVehiclePassengerNPC

From Valve Developer Community
Jump to navigation Jump to search

BaseVehiclePassengerNPC:

SetTargetVehicle <string>
Change the target vehicle of this NPC.
EnterVehicle <integer>
Tell this NPC to run and get in a role in their target vehicle.
EnterVehicleForce <integer>
Force this NPC to get in a role in their target vehicle.
ExitVehicle
Tell this NPC to get out of their target vehicle.
DriverSetTargetPathCorner <string>
Set the path corner the driver will use for pathing.
DriverSetMaxSpeed <float>
Set the Maxspeed (percentage of vehicle's maxspeed) (only used if NPC is in driver role) (0 - 1).
DriverSetMinSpeed <float>
Set the Minspeed (percentage of vehicle's maxspeed) (only used if NPC is in driver role) (0 - 1).
DriverStartDriving
Tell the driver to start driving (must be in driver role of vehicle).
DriverStopDriving
Tell the driver to stop driving (must be in driver role of vehicle).
DriverGotoPathCorner <string>
Tell the driver to go to a specific path corner and continue from there (must be in driver role of vehicle).
DriverStartBoost
Tell the driver to apply his boost (must be in driver role of vehicle).
DriverStopBoost
Tell the driver to stop applying his boost (must be in driver role of vehicle).
DriverLock
Disables the drivers ability to turn and brake.
DriverUnlock
Enables the drivers ability to turn and brake.
BaseNPC inputs