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

Members Online

»
0 Active | 12 Guests
Online:

LATEST FORUM THREADS

»
water
CoD4 MP Mapping
Rainbow HELP....
CoD4 MP Mapping
help pls
CoD2 Scripting

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 2
Category: CoD2 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: no luck with .gsc
Genesis_Mason
General Member
Since: Jul 28, 2011
Posts: 7
Last: Aug 6, 2011
[view latest posts]
Level 0
Category: CoD2 SP Mapping
Posted: Friday, Jul. 29, 2011 08:55 am
Hello

Im new here and i have a problem with this script

Code:
main() 
{  

maps\_load::main();  

obj1();  
{  
obj1 = getent("obj1", "targetname");  
objective_add(1, "active", &"SP_MISSION_OBJ1",getent("obj1", "targetname").origin);  
objective_current(1); 
iprintlnbold (&"SP_MISSION_OBJ1");   
obj1 waittill("death");  
objective_state(2, "done");  
wait(2);  
thread obj2();  
}  

obj2()  
{  
obj2 = getent("obj2", "targetname");  
objective_add(2, "active", &"SP_MISSION_OBJ2",getent("obj2", "targetname").origin);  
objective_current(2); 
iprintlnbold (&"SP_MISSION_OBJ2");  
obj2 waittill("trigger");  
objective_state(2, "done");   
wait(2);  
iprintlnbold (&"SP_MISSION_OBJ_COMPLETED");  
}  
}


Can someone explain me whats wrong here?

edited by Mystic - Cleaned up post to display script correctly.
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6095
Last: Apr 27, 2013
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Friday, Jul. 29, 2011 10:11 am
What isn't working? The first thing i noticed is you have ''objective_state 2 done'' when trying to complete objective 1
Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 SP Mapping

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

»