Npc cranedriver: 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.
m (CD, pic) |
m (Substituted IO templates) |
||
Line 19: | Line 19: | ||
{{I VehicleDriverNPC}} | {{I VehicleDriverNPC}} | ||
{{ | {{I|ForcePickup|Force the driver to pickup the specified entity (by targetname).|param=target_destination}} | ||
{{ | {{I|ForceDrop|Force the driver to drop the currently held object at the specified entity's location. | ||
|param=target_destination}} | |param=target_destination}} | ||
Line 27: | Line 27: | ||
{{O BaseNPC}} | {{O BaseNPC}} | ||
{{ | {{O|OnPickedUpObject|Fired when the ForcePickup specified object has been picked up.}} | ||
{{ | {{O|OnDroppedObject|Fired when the ForceDrop specified object has been dropped.}} | ||
{{ | {{O|OnPausingBeforeDrop|Fired at the start of the pause before dropping the ForceDrop specified object.}} | ||
[[Category:Vehicle Entities]] | [[Category:Vehicle Entities]] | ||
[[Category:Half-Life 2 NPCs|C]] | [[Category:Half-Life 2 NPCs|C]] |
Revision as of 21:43, 19 April 2025
![]() |
---|
CNPC_CraneDriver defined in ![]() npc_cranedriver.cpp
|
npc_cranedriver
is a point entity available in Half-Life 2,
Half-Life 2: Episode One,
Half-Life 2: Episode Two, and
Half-Life 2: Deathmatch.

The NPC used to drive cranes.

Keyvalues
- Vehicle (vehicle) <targetname>
- Vehicle to drive.
- Pause time before dropping a ForceDrop specified object (releasepause) <float>
- Pause time before dropping a ForceDrop specified object.
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.
- ForcePickup <targetname >
- Force the driver to pickup the specified entity (by targetname).
- ForceDrop <targetname >
- Force the driver to drop the currently held object at the specified entity's location.
Outputs
|
- OnPickedUpObject
- Fired when the ForcePickup specified object has been picked up.
- OnDroppedObject
- Fired when the ForceDrop specified object has been dropped.
- OnPausingBeforeDrop
- Fired at the start of the pause before dropping the ForceDrop specified object.
Categories:
- TODO rewrite lang to LanguageBar
- Point entities
- Non-internal Half-Life 2 entities
- Half-Life 2 entities
- Half-Life 2 point entities
- Non-internal Half-Life 2: Episode One entities
- Half-Life 2: Episode One entities
- Half-Life 2: Episode One point entities
- Non-internal Half-Life 2: Episode Two entities
- Half-Life 2: Episode Two entities
- Half-Life 2: Episode Two point entities
- Non-internal Half-Life 2: Deathmatch entities
- Half-Life 2: Deathmatch entities
- Half-Life 2: Deathmatch point entities
- Immobile NPCs
- NPC entities
- Vehicle Entities
- Half-Life 2 NPCs