|
|
#1 |
|
Guest
Posts: n/a
|
How far an enemy can see?
How would i go about setting how far an enemy can see?
I've tried editing m_flFieldOfView in npc_combine, but if its a positive number the npc doesnt see me at all. Anything negative seems to be the same? thanks in advance |
|
|
|
#2 |
|
Guest
Posts: n/a
|
I beleive you can set it using SetDistLook, do a search for flDistLook to see if there is a DEFINE for the NPC you are interested in.
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
Found it, thanks for the help.
For anybody else wanting to know: flDistLook is used, but equals m_LookDist. So look for m_LookDist in AI_Senses.h, its default value is 2048. Update: Ok, looks like they don't use that variable often, and just use the value 2048. So search for that value =) Last edited by saracen: 05-28-2007 at 02:04 AM. |
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|