Prop vehicle apc

From Valve Developer Community
Revision as of 19:19, 19 January 2009 by VDCBot (talk | contribs) (Robot: fixing template case.)
Jump to navigation Jump to search

Template:Wrongtitle

Entity Description

A prop_vehicle_apc using its typical models/combine_apc.mdl model.

A Combine APC vehicle with mounted guns, that can be blown up and driven by a vehicle driver or a npc_apcdriver.

It can not be driven by the player, even with a different vehicle script file. (It is "enterable", but that's it. You will just get stuck under the vehicle, facing to the right, and most importantly won't be able to exit the APC again. To prevent the vehicle from being entered, you should set its VehicleLocked (Start locked) keyvalue to Yes.)

The APC should generally be given the models/combine_apc.mdl world model and the scripts/vehicles/apc_npc.txt vehicle script file. To have the APC drive and/or shoot, create an npc_apcdriver and assign the APC to its vehicle (Vehicle to drive) keyvalue.

The wheels of the prop are not solid, but you can prevent the player going through them by immersing them within one or more Player Clip brushes.

Keyvalues

<target_destination> Name of one or more info_apc_missile_hint entities to use to determine what to hit.

Inputs

A target to fire a missile at
  • Destroy
Causes the APC to blow up.

Outputs

Fired when the APC shoots a missile.
  • OnDeath
Fired when the APC is killed. (!activator is the killer)
  • OnDamaged (in all games since Half-Life 2: Episode One)
Fired when the APC is damaged.
  • OnDamagedByPlayer (in all games since Half-Life 2: Episode One)
Fired when the APC is damaged by the player.