AI Patrol Tutorial

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Lillemann1993
Lance Corporal
Posts: 10
Joined: Thu Dec 11, 2008 4:46 pm

AI Patrol Tutorial

Post by Lillemann1993 »

Do you want a enemy to patrol a area? it's realy easy!

1. Create a ai/german/wehrmacht/soldier
2. Press I and set type_idle to patrol
3. Give him a target of path1
4. And set the patrolpath to path1

1. Create a info/waypoint and place it on your info/playerstart
2. Give it a $targetname of path1
3. Give it a target of path2
4. Now create a new info/waypoint and place it where you want!
5. Give it a $targetname of path2
6. And give it a target of path1

Now you have a enemy patroling from A to B.
Post Reply