Making NPC's run.

  • Thread starter Thread starter Gamefreak
  • Start date Start date
G

Gamefreak

Guest
Im trying to make an ant lion guard run and smash thru boxes, and then attack you. I made a scripted_sequence and set all the corect options. But he just trys to run thru the boxes, yet does not get there. If you destroy the boxes, he runs to his location and just runs in place. Everytime i make a sequence, something is messed up. Whats wrong?
 
the boxes won't go away by themselves. Because you triggered a scripted sequence, the antlion will just proceed toward it, unless you tell it other wise. IE: give the boxes a name(together) and make an ai_relationship entity with the antlion hating the box name. Also, make sure you don't hit any flags in the scripted sequnce to override AI. Now the antlion will proceed forward, smashing each box as he comes to it. If you wanted the boxes to appear to be destroyed as he runs through them, then use triggers with env_explosions near each for the antlion to trigger as he gets near them. That will break the boxes and make the antlion appear to run through them.
 
Back
Top