zubin Posted July 2, 2002 Posted July 2, 2002 How do I control how far an NPC will spot the player? Do they have some active visual range I can set like turrets have? The reason I'm asking is I have some stormtroopers in a map I'm trying to make but they don't seem to react to the player at the distance I want them to.
Emon Posted July 2, 2002 Posted July 2, 2002 Sure. Pop open npcs.cfg and edit these values: Earshot - How far the NPC can hear in game units. 32 units is about one meter. Hfov - Horizontal field of view. I think some guys default to like 45 degrees, kind of low. 160 or 180 would be more like it, IMO. Would give them periphreal vision. Vfov - Verticle field of view. Same as above. I'd recommend maybe like 90 degrees or something. Vigilance - How likely an NPC is to notice something. 0 = never, 1 = always notice. Visrange - How far away they can see in map units. 32 is about one meter. Just add the values for each NPC if they aren't already there. Keep tweaking till you get it right. NPCs.cfg has a complete list of these values at the top of the file.
Xcom Posted July 2, 2002 Posted July 2, 2002 Better do it via the script otherwise it will affect all NPCs.
Emon Posted July 2, 2002 Posted July 2, 2002 It affects all NPCs with that type. ICARUS should let you set those values for one specific entity.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.