CNPC_VehicleDriver

From Source Entities
(Redirected from Npc vehicledriver)
Jump to navigation Jump to search

CNPC_VehicleDriver is a code class in every Source game except L4d.pngL4d2-small.png.

Classnames:

  • npc_vehicledriver - Simulates an NPC driving a vehicle. Follows a set of path_tracks.

Note: Goes inactive if the vehicle becomes parented.

Flags[edit | edit source]

  • 65536: Start Inactive

Keyvalues[edit | edit source]

Vehicle to drive (vehicle) <target_destination>
Vehicle to control.
Max Speed (drivermaxspeed) <float>
Multiplier for the vehicle speed. Cannot force the vehicle to go faster than normal.
Min Speed (driverminspeed) <float>
Minimum speed (units per second). Cannot force the vehicle to go faster than normal.

Inputs[edit | edit source]

StartFiring
Tells the driver to fire at enemies using weaponry attached to the vehicle.
StopFiring
Tells the driver to stop shooting enemies.
GotoPathCorner <target_destination>
Tells the driver to go to a specific path_track and continue from there.
SetDriversMaxSpeed <float>
Sets Max Speed.
SetDriversMinSpeed <float>
Sets Min Speed.
StartForward
Tells the driver to start driving.
Stop
Tells the driver to stop driving.