Npc vehicledriver: Difference between revisions
Jump to navigation
Jump to search
Note:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
m (intn) |
||
Line 14: | Line 14: | ||
{{KV VehicleDriverNPC}} | {{KV VehicleDriverNPC}} | ||
{{KV|Maxspeed (percentage of vehicle's maxspeed)|float|}} | {{KV|Maxspeed (percentage of vehicle's maxspeed)|intn=drivermaxspeed|float|Maxspeed (percentage of vehicle's maxspeed).}} | ||
{{KV|MinSpeed (percentage of vehicle's maxspeed)|float|}} | {{KV|MinSpeed (percentage of vehicle's maxspeed)|intn=driverminspeed|float|MinSpeed (percentage of vehicle's maxspeed).}} | ||
== Flags == | == Flags == |
Revision as of 13:59, 9 July 2024
npc_vehicledriver
is a point entity available in all Source games except
Left 4 Dead series.
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
|