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

Members Online

»
0 Active | 95 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: AI go to nodes
Pablo_Abruzzi
General Member
Since: Jan 30, 2010
Posts: 93
Last: Aug 10, 2011
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Wednesday, Mar. 24, 2010 07:08 pm
OK. It is working now. But I have a little problem....now just one AI can go to one node. How to do it with more AI?
I try getentarray to node and to AI, but it doesn't work.

I want do something like: 3 guys have one tagretname and three nodes one targetname, too, and they go to them randomly.

Help[confused]
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Wednesday, Mar. 24, 2010 09:45 pm
for an array of nodes you use getnodearray and getentarray is for the ai's.
also have you looked at the tutorial for color groups? because they easily cover that area. check it out in the tutorial section of cod4.
Share |
Pablo_Abruzzi
General Member
Since: Jan 30, 2010
Posts: 93
Last: Aug 10, 2011
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Friday, Mar. 26, 2010 08:18 pm
I try something like this:

Code:

d11() 
{
friends =getentarray ("friend", "targetname");
for(i=0;i<friends.size;i++)
ziomki = friends[i] stalingradSpawn();
nodys =getnodearray ("nody", "targetname");
for(k=0;k<nodys.size;k++)
friends[i] setgoalnode(nodys[k]); 
}


It's not working, after I try with this:
Code:
friends[i] FindCoverNode();

But it isn't working,too.

I have 3 marines and 3 cover_nodes, and patchnodes of course.
Please help again[confused]

EDIT: And I try with 'ziomki, it is not working, too.
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Friday, Mar. 26, 2010 11:10 pm
try color groups that should work
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

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

»