Prop vehicle apc: Difference between revisions
Jump to navigation
Jump to search
m (Linked to info_apc_missile_hint.) |
(Moved Usage section.) |
||
Line 3: | Line 3: | ||
==Entity Description== | ==Entity Description== | ||
APC with mounted guns, can only be driven by a vehicle driver or a [[npc_apcdriver]]. | APC with mounted guns, can only be driven by a vehicle driver or a [[npc_apcdriver]]. | ||
The APC should generally be given the <code>models/combine_apc.mdl</code> world model and the <code>scripts/vehicles/apc_npc.txt</code> vehicle script file. The APC is not drivable by the player, even with a different vehicle script file. To have the APC drive and/or shoot, create an [[npc_apcdriver]] and assign the APC to its "Vehicle to drive" property. | |||
==Keyvalues== | ==Keyvalues== | ||
Line 22: | Line 24: | ||
* '''OnDeath''' | * '''OnDeath''' | ||
: Fired when the APC is killed. | : Fired when the APC is killed. | ||
[[Category:Entities]] | [[Category:Entities]] |
Revision as of 08:35, 13 March 2006
Entity Description
APC with mounted guns, can only be driven by a vehicle driver or a npc_apcdriver.
The APC should generally be given the models/combine_apc.mdl
world model and the scripts/vehicles/apc_npc.txt
vehicle script file. The APC is not drivable by the player, even with a different vehicle script file. To have the APC drive and/or shoot, create an npc_apcdriver and assign the APC to its "Vehicle to drive" property.
Keyvalues
- Template:Kv basedriveablevehicle
- missilehint
- <target_destination> Name of one or more info_apc_missile_hint entities to use to determine what to hit.
Inputs
- Template:I basedriveablevehicle
- FireMissileAt <target_destination>
- A target to fire a missile at
- Destroy
- Causes the APC to blow up.
Outputs
- Template:O basedriveablevehicle
- OnFiredMissile
- Fired when the APC shoots a missile.
- OnDeath
- Fired when the APC is killed.