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 |
m (minoro) |
||
Line 1: | Line 1: | ||
{{wrongtitle|title=npc_vehicledriver}} | {{wrongtitle|title=npc_vehicledriver}} | ||
==Entity | == Entity description == | ||
[[Image:{{PAGENAME}}.png|left]]NPC used to drive a target vehicle. | [[Image:{{PAGENAME}}.png|left]]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 12: | Line 10: | ||
{{npcnote}} | {{npcnote}} | ||
==Keyvalues== | == Keyvalues == | ||
* {{kv vehicledrivernpc}} | * {{kv vehicledrivernpc}} | ||
* '''drivermaxspeed''' | * '''drivermaxspeed''' | ||
Line 18: | Line 16: | ||
* '''driverminspeed''' | * '''driverminspeed''' | ||
: <float> MinSpeed (percentage of vehicle's maxspeed). | : <float> MinSpeed (percentage of vehicle's maxspeed). | ||
==Flags== | |||
== Flags == | |||
* {{fl vehicledrivernpc}} | * {{fl vehicledrivernpc}} | ||
==Inputs== | |||
== Inputs == | |||
* {{i vehicledrivernpc}} | * {{i vehicledrivernpc}} | ||
* '''SetDriversMaxSpeed <float>''' | * '''SetDriversMaxSpeed <float>''' | ||
Line 30: | Line 30: | ||
* '''Stop''' | * '''Stop''' | ||
: Tell the driver to stop driving. | : Tell the driver to stop driving. | ||
==Outputs== | |||
== Outputs == | |||
* {{o basenpc}} | * {{o basenpc}} | ||
[[Category:Entities]] | |||
[[Category:Vehicle Entities]] | |||
[[Category:NPCs]] |
Revision as of 02:43, 17 April 2008
Entity description
The NPC used to drive a target vehicle.
- For an example, see the apc_on_path prefab.

Keyvalues
- Template:Kv vehicledrivernpc
- drivermaxspeed
- <float> Maxspeed (percentage of vehicle's maxspeed).
- driverminspeed
- <float> MinSpeed (percentage of vehicle's maxspeed).
Flags
Inputs
- Template:I vehicledrivernpc
- SetDriversMaxSpeed <float>
- Set the drivermaxspeed.
- SetDriversMinSpeed <float>
- Set the driverminspeed.
- StartForward
- Tell the driver to start driving.
- Stop
- Tell the driver to stop driving.