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

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
water
CoD4 MP Mapping
Script errors
CoD4 MP 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, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Help With 1 Objective Having Multiple Places(Like "Safe House") And Having Text On Screen (Like Your Allys Talking)
Josh-Xenu
General Member
Since: May 27, 2012
Posts: 54
Last: May 18, 2013
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Thursday, Jul. 26, 2012 05:17 pm
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 Restricted Access subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»