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

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Moving AI with scripting..
raymens
General Member
Since: Jul 3, 2005
Posts: 198
Last: Aug 22, 2008
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Thursday, Mar. 2, 2006 02:47 pm
i readed the tutorial: Extended AI control, Advanced ai/friendly scripting
and i tryed it in my sp testing map.. but it doest work.. i get: "Cannot cast undefinied to object"
It is this line: guy setgoalnode(node);

this is my script:
Quote:
node_axis1()
{
node = getent("node_axis1","targetname");
guy = getent("actor_axis1","script_noteworthy");
guy.goalradius = 4; //makes sure that this guy doesn't leave his node
guy setgoalnode(node);
guy waittill("goal"); //wait 'till he has reached his node
}
Share |
Yorkshire-Rifles
General Member
Since: Mar 16, 2005
Posts: 272
Last: Apr 19, 2008
[view latest posts]
Level 5
Category: CoD Mapping
Posted: Friday, Mar. 3, 2006 12:31 am
Is your Axis AI a spawner? If so try level.guy and then try identifying him as an array (even though he is just one guy).
Share |
BR3NTB
General Member
Since: Jun 20, 2004
Posts: 893
Last: Mar 3, 2006
[view latest posts]
Level 7
Category: CoD Mapping
Posted: Friday, Mar. 3, 2006 02:00 am
Check This

"node = getent("node_axis1","targetname");"

prolly should say:

node = getnode("node_axis1","targetname");

assuming that node_axis1 is a goal_node.

[smokin]
Share |
Bodger2
General Member
Since: Sep 4, 2004
Posts: 132
Last: Aug 5, 2006
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Friday, Mar. 3, 2006 05:34 am
Looks like Flipsen made an error in that tut.

And this is one of my biggest problems with this site.Once a tut is posted, its out of the authors hand,so it can not be easily edited for errors.Unless he contacts the staff around here.I understand the reasons why this site does what it does,doesn't mean I have to like it though.The tut that Flipsen wrote was taken from the .Map forums,and was corrected.So no confusion.
Share |
raymens
General Member
Since: Jul 3, 2005
Posts: 198
Last: Aug 22, 2008
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Friday, Mar. 3, 2006 06:04 am
ty it works now[jumping]

but now.. i want to make multiple nodes for 1 allied soldier
it says: bad syntax.. } (on the bottom line)

Quote:
node_allied1()
{
node = getnode ("node1_allied1","targetname");
node2 = getnode ("node2_allied1","targetname");
guy = getent ("actor_allied1","script_noteworthy");
trig = getent ("trig1_allied","targetname");
trig2 = getent ("trig2_allied","targetname");
trig waittill ("trigger");
guy.goalradius = 4;
guy setgoalnode(node);
guy waittill("goal");
trig2 waittill ("trigger");
node delete();
guy.goalradius = 4;
guy setgoalnode(node2);
guy waittill("goal")
}

does anybody know what i did wrong?
Share |
Bodger2
General Member
Since: Sep 4, 2004
Posts: 132
Last: Aug 5, 2006
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Friday, Mar. 3, 2006 06:15 am
Don't forget your semi-colon ;
Share |
raymens
General Member
Since: Jul 3, 2005
Posts: 198
Last: Aug 22, 2008
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Friday, Mar. 3, 2006 05:16 pm
ooh lol.. damn.. that is a stupid mistake[banghead]
ty[biggrin]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD Mapping

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

»