Npc vehicledriver: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
m (Robot: fixing template case.)
Line 11: Line 11:


== Keyvalues ==
== Keyvalues ==
* {{kv vehicledrivernpc}}
* {{KV VehicleDriverNPC}}
* '''drivermaxspeed'''
* '''drivermaxspeed'''
: <float> Maxspeed (percentage of vehicle's maxspeed).
: <float> Maxspeed (percentage of vehicle's maxspeed).

Revision as of 20:00, 19 January 2009

Template:Wrongtitle

Entity description

Npc vehicledriver.png

The NPC used to drive a target vehicle.

Note.pngNote:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.

Keyvalues

Vehicle (vehicle) <targetname>
Vehicle to drive.
  • drivermaxspeed
<float> Maxspeed (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 <targetnameRedirectInput/string>
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