ai vision distance

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
erick
Major
Posts: 280
Joined: Wed May 30, 2007 1:14 am
Location: USA

ai vision distance

Post by erick »

is there a way to set how far the ai can see with one command instead of changing every single ai
(i think you can use "ai_visiondistance" under worldspawn but when i changed the number to 500 instead of 2048 nothing happens in the ai menu)

how can you do this right?
is there any way to check and see if it is working

i want to do this because on 2048 every guy would be able to hear and see everything on the map (my map isnt huge)
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Select one ai then on the selection menu choose select enities of type and that will select all ai then change the vision distance . I never tried it but you can look for the aipreset.cfg and try changing that . It should be in a directory called radiant_ai_cfg where you installed radiant . This is what it looks like .
// this defines all the preset key-pair values in the ai dialog in radiant
// the syntax is "rootmenu_submenu_menuitem", followed by a "{", a list of key-pairs, and a "}"

german_wehrmacht_officer
{
targetname "enemy"
health 120
}

german_wehrmacht_soldier
{
targetname "enemy"
health 80
}

allied_captain
{
targetname "friend"
health 100
accuracy 100
}
Image
User avatar
erick
Major
Posts: 280
Joined: Wed May 30, 2007 1:14 am
Location: USA

Post by erick »

thanks
that looks like it might work
Post Reply