Npc citizen fleeing: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (→‎top: Unicodifying, replaced: [[Image: → [[File:)
 
Line 1: Line 1:
{{DISPLAYTITLE:npc_citizen_fleeing}}
{{DISPLAYTITLE:npc_citizen_fleeing}}


[[Image:Prefab npc_citizen_fleeing.jpg|thumb|250px|right|An npc_citizen_fleeing prefab.]]
[[File:Prefab npc_citizen_fleeing.jpg|thumb|250px|right|An npc_citizen_fleeing prefab.]]


A [[prefab]] located in the ''Prefabs HL2'' folder, containing script setup that will spawn a fleeing citizen when triggered.
A [[prefab]] located in the ''Prefabs HL2'' folder, containing script setup that will spawn a fleeing citizen when triggered.

Latest revision as of 00:15, 7 January 2024


An npc_citizen_fleeing prefab.

A prefab located in the Prefabs HL2 folder, containing script setup that will spawn a fleeing citizen when triggered.

This prefab contains the following:

When triggered (by external entities), the relay will spawn the citizen, and its spawning will trigger the aiscripted_schedule to Run to Goal Entity, with the goal entity being the info_target destination. The flight is set to only be interupted by his death.

Tip.pngTip:While the prefab will still work fine in-game, the Hammer model preview won't be able to find the model of the citizen, and will instead just display a big "ERROR" sign instead of it. To fix this, change its Model keyvalue from models/humans/male_01.mdl to Male 1.