Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 153 Guests
Online:

LATEST FORUM THREADS

»
Mohaa maps on Cod2?
CoD2 MP Mapping
is this place alive?
CoDBO3 Mapping
Call of DutyŽ: WWII
CoD WW2 General

Tutorials

»
CoD Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
AI on Patrol
Versions: You must be logged in to view history.
Bodger2 and getting your AI to patrol
Getting your AI's to patrol a path is easy.


make a patrol path of pathnodes,so that they are all connected. (It'll auto-generate the targetnames if you use ctrl+k to link two nodes together (which is the best way to do it))

one node MUST be spawnflagged NOT_CHAIN for patrol to work.
============================================

Place an Ai in your map,spawned or not.

Edit: Do not spawn friendly AI's as patrollers,enemy AI's are ok to spawn.
You can have friendly AI's as patroller as long as they are not spawned.

Give him the KEY:script_patroller Value:1 (see values below)

Target him to one of the nodes,not the one that is flagged not_chain.

Possible values are
[0] = patrolwalk_bounce;
[1] = patrolwalk_tired;
[2] = patrolwalk_swagger;

Your Ai's will patrol the path until alterted.
you do need a GSC file or the AI's will stand there doing nothing.But just a basic one.

main()
{
maps_load::main();
}


mapsload::main loads all the global scripts for you so thats all you need to get this to work.
I should add that if you give a node in the chain a KEY:script_animation VALUE:1
the patroler will pause and do a random animation before moving on.
The patroler will do one of three animations ,twitch,look,or idle.

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»