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.
mNo edit summary |
(cleanup) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:npc_vehicledriver}} | {{DISPLAYTITLE:npc_vehicledriver}} | ||
{{hl2 point|npc_vehicledriver}} | |||
==Entity description== | |||
[[Image:{{PAGENAME}}.png|left|link=]] | [[Image:{{PAGENAME}}.png|left|link=]] | ||
The NPC used to drive a target vehicle. | |||
{{immobile npc}} | {{immobile npc}} | ||
* For an example, see the [[apc_on_path]] prefab. | * For an example, see the [[apc_on_path]] prefab. | ||
Line 9: | Line 12: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV VehicleDriverNPC}} | |||
{{KV|Maxspeed (percentage of vehicle's maxspeed)|float|}} | |||
{{KV|MinSpeed (percentage of vehicle's maxspeed)|float|}} | |||
== Flags == | == Flags == | ||
{{Fl VehicleDriverNPC}} | |||
== Inputs == | == Inputs == | ||
{{I VehicleDriverNPC}} | |||
{{IO|SetDriversMaxSpeed|Set the drivermaxspeed.|param=float}} | |||
{{IO|SetDriversMinSpeed|Set the driverminspeed.|param=float}} | |||
{{IO|StartForward|Tell the driver to start driving.|}} | |||
{{IO|Stop|Tell the driver to stop driving.|}} | |||
== Outputs == | == Outputs == | ||
{{O BaseNPC}} | |||
[[Category:Vehicle Entities]] | [[Category:Vehicle Entities]] | ||
[[Category:Half-Life 2 NPCs]] | [[Category:Half-Life 2 NPCs]] |
Revision as of 10:17, 5 February 2012
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.
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
|