Npc citizen fleeing: Difference between revisions
Jump to navigation
Jump to search
Tip: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.
(The npc_citizen_fleeing prefab.) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{ | {{DISPLAYTITLE:npc_citizen_fleeing}} | ||
[[Image:Prefab npc_citizen_fleeing.jpg|thumb|250px|right|An npc_citizen_fleeing prefab.]] | [[Image:Prefab npc_citizen_fleeing.jpg|thumb|250px|right|An npc_citizen_fleeing prefab.]] |
Revision as of 23:53, 4 December 2011
A prefab located in the Prefabs HL2 folder, containing script setup that will spawn a fleeing citizen when triggered.
This prefab contains the following:
- A logic_relay that will set the whole prefab in motion.
- The npc_citizen template to spawn.
- An npc_template_maker to spawn the citizen template.
- An aiscripted_schedule that will order the spawned citizen to flee.
- An info_target that will serve as the destination for the flight.
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.
