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

Members Online

»
0 Active | 15 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 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: ai move
tschiggen
General Member
Since: Oct 19, 2010
Posts: 122
Last: Feb 16, 2012
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Tuesday, Nov. 23, 2010 09:38 am
is it possible to move the AI per script`?
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 SP Mapping
Posted: Tuesday, Nov. 23, 2010 03:24 pm
yes and thats much more better if your trying to be precise.

i think the func is

ai setgoalnode( getnode( "name", "targetname" ) );
ai waittill( "goal" );


u can also define ur node and give it a var and then use the var in

setgoalnode( node );

theres about 2 other ways but they all quite work the same.
Share |
tschiggen
General Member
Since: Oct 19, 2010
Posts: 122
Last: Feb 16, 2012
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Tuesday, Nov. 23, 2010 05:18 pm
it doesnt work.

my moving script:

flag_wait( "run" );
level.bishop setgoalnode( getnode( "stop", "targetname" ) );
level.bishop waittill( "goal" );
flag_set( "run" );
Share |
FattalError
General Member
Since: May 4, 2009
Posts: 26
Last: Feb 16, 2011
[view latest posts]
Level 2
Category: CoD4 SP Mapping
Posted: Tuesday, Nov. 23, 2010 05:30 pm
This can't be fuctional. You have in script waiting for flag, but you set this flag after action, which you want to do. You must set up flag in another thread, or make it through trigger (anytrigger waittill("trigger"); yourAI setgoalnode.....)
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 SP Mapping
Posted: Tuesday, Nov. 23, 2010 08:44 pm
the "flag_set" has to be set in order for ur script to continue. so a proper way would be to have 2 threads, one with the flag_wait and the other with the flag_set, then when flag_set happens the other thread with flag_wait will continue. Theres a tutorial on how flags works and watnot. just look at the cod4 tutorial section and you will find it.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 SP 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

»