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

Members Online

»
0 Active | 6 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 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 subscribe
Author Topic: Help With 1 Objective Having Multiple Places(Like "Safe House") And Having Text On Screen (Like Your Allys Talking)
Josh.S
General Member
Since: May 27, 2012
Posts: 86
Last: Sep 16, 2014
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Friday, Jul. 27, 2012 12:17 am
I keep trying but i cant seem to get it:
obj2()
{
obj2 = getent("obj2", "targetname"); //the game finds the trigger
objective_add(2, "active", &"callforkalin_OBJ2",getent("obj2","targetname").origin); //add obj.
Objective_AdditionalCurrent(2); //ADDITIONAL current objective

obj2 waittill("trigger"); //wait till the trigger is triggered
objective_state(2, "done");
obj2 delete(); //deletes it

wait 8; //fill in however long you like (in seconds)
thread obj3();
}

obj3()
{
obj3 = getent("obj3", "targetname"); //the game finds the trigger
objective_add(3, "active", &"callforkalin_OBJ3",getent("obj3","targetname").origin); //add obj.
Objective_AdditionalCurrent(3); //current objective
Objective_Position( 3, getent("obj4","targetname").origin);
Objective_AdditionalPosition( 3, 4, 3 );

obj3 waittill("trigger"); //wait till the trigger is triggered
objective_state(3, "done");
obj3 delete(); //deletes it

wait 8; //fill in however long you like (in seconds)

}

obj4()
{
obj4 = getent("obj4", "targetname"); //the game finds the trigger
objective_add(4, "active", &"callforkalin_OBJ3",getent("obj4","targetname").origin); //add obj.
Objective_state(4, "active"); //ADDITIONAL current objective
Objective_AdditionalCurrent(4); //current objective

obj4 waittill("trigger"); //wait till the trigger is triggered
objective_state(4, "done");
obj4 delete(); //deletes it

wait 8; //fill in however long you like (in seconds)

}
I made this script but when i complete objective 2, i just get this error:
"type int is not a vector"
And for my Text On Screen
i dont know how to even make the script.
Share |
Restricted Access Topic is Locked 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

»