AI Tutorials?

Funky Munky

Newbie
Joined
Dec 3, 2004
Messages
206
Reaction score
1
Anyone know of any good ones? I have grasped pretty adequate mapping skills and now I need to learn some AI triggers and shit. For instance I have NPC enemies on my map but they can't open doors/walk down steps so could someone help me?
 
So I can use scripted_sequence for them to open doors and stuff? I thought the template AI would be smart enough to do it. :(
 
Nah, you must set a scripted sequence to display the "opening door" animation and trigger the door to open...that's what I think, anyways. Still, they can open doors by themselves, but they will just wander off around the map without a designated sequence or path.
 
So maybe if I joined two info_nodes on each side of a door they will open it?
 
That depends on them whether they will decide to walk there or not, so it's pretty random and unpredictable :|
 
Oh I get you now.

Another thing I wanted to ask was to enable them to see through glass brushes. Is there a way to do this?
 
try info_node_hint. That might work?

For the glass brushers put a info_node_hint with hint set to window or something to that extent.

I dun know...
 
Maybe set the window to a func_illusionary? With a player clip brush to prevent the player from going through? :O
 
I figured this all out. Just for anyone look for reference...

To enable NPCs to see through windows place an info_hint entity in the middle of the window (line it up with height too) and in the properties select "World:Window". They can now see you through and will attack.

To enable NPCs to open doors you must compile the map with the info_nodes and the NPC walking on them. Then when you exit the level and back to Hammer delete the doors and compile again. Let your NPCs leave the room through the door and run around, whatever. Exit again and back to Hammer and place the doors again. Once you compile for the third time they should open the doors.

This might help a few people.
 
Back
Top