npc_vehicledriver
Jump to navigation
Jump to search
Warning: Any player usable vehicle can be driven by this entity as well, but doing so will cause the vehicle to be unusable by the player.
Stopping and killing the Npc_vehicledriver, or using the I/O "Unlock" the vehicle will not fix it, most likely because the vehicle is still deemed "occupied".
Bug:Killing the driver npc befere shutting off the vehicle engine will cause the acceleration sound to be stuck playing in place.
Note: Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.
| CNPC_VehicleDriver |
npc_vehicledriver is a model entity available in all
Source games except ![]()
Left 4 Dead series.
Stopping and killing the Npc_vehicledriver, or using the I/O "Unlock" the vehicle will not fix it, most likely because the vehicle is still deemed "occupied".
Entity description

The NPC used to drive a target vehicle.
- For an example, see the apc_on_path prefab.
Keyvalues
- Vehicle (vehicle) <targetname>
- Vehicle to drive.
- Maxspeed (percentage of vehicle's maxspeed) (drivermaxspeed) <float>
- Maxspeed (percentage of vehicle's maxspeed).
- MinSpeed (percentage of vehicle's maxspeed) (driverminspeed) <float>
- MinSpeed (percentage of vehicle's maxspeed).
Flags
- Start Inactive : [65536]
Inputs
- StartFiring
- Tell the driver to attack nearby enemies with the vehicle's weaponry (if any).
- StopFiring
- Tell the driver to stop attacking nearby enemies with the vehicle's weaponry.
- GotoPathCorner <targetname>
- Tell the driver to go to a specific path corner and continue from there.
- SetDriversMaxSpeed <float>
- Set the drivermaxspeed.
- SetDriversMinSpeed <float>
- Set the driverminspeed.
- StartForward
- Tell the driver to start driving.
- Stop
- Tell the driver to stop driving.
Outputs
|
See also
- npc_apcdriver - derives from
npc_vehicledriver, used to drive Combine APCs and fire from them. - npc_cranedriver - used by NPC-operated cranes, such as the one in Highway 17.