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

Members Online

»
0 Active | 56 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP 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 2
Category: CoD2 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: End of mission?
zebrahdh
General Member
Since: Apr 18, 2008
Posts: 10
Last: May 15, 2008
[view latest posts]
Level 0
Category: CoD2 SP Mapping
Posted: Saturday, May. 10, 2008 08:41 pm
I really hope the answer is obvious because I can't figure it out for the life of me.

How do I end my mission?

My map, as of now, is a straight forward no objectives, escape the building without getting killed, SP map.

But how in the world, do I make the game end when you have escaped?

Does it have to be an objective? I would rather not have a star marker for it.

edited on May. 10, 2008 04:42 pm by zebrahdh
Share |
TheModDoctor
General Member
Since: Apr 27, 2007
Posts: 174
Last: Jan 10, 2009
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Saturday, May. 10, 2008 10:04 pm
Hi, type this in the end of your gsc:

Code:
missionsuccess("credits",true);
Share |
zebrahdh
General Member
Since: Apr 18, 2008
Posts: 10
Last: May 15, 2008
[view latest posts]
Level 0
Category: CoD2 SP Mapping
Posted: Sunday, May. 11, 2008 08:48 am
TheModDoctor writes...
Quote:

Ok thats definitely simple, and I never would have figured to do that.

Is there a way to make a .str of your own credits too?

Thanks ModDoc.

edited on May. 11, 2008 04:49 am by zebrahdh

Actually, im a bit confused... what exactly triggers this? and how?

Could I make a trigger that will trigger missionsuccess("credits", true);?

edited on May. 11, 2008 04:54 am by zebrahdh
Share |
TheModDoctor
General Member
Since: Apr 27, 2007
Posts: 174
Last: Jan 10, 2009
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Sunday, May. 11, 2008 03:11 pm
i'll give you a small example of how you can use this:

Code:
main()
{
maps\_load::main();

thread mission_end_trig();
}

mission_end_trig()
{
endtrig=getent("endtrigger", "targetname");
endtrig waittill("trigger");

missionsuccess("credits",true);
}


Now when endtrig is triggered, the mission will end. Hope this helps...[wink]
Share |
zebrahdh
General Member
Since: Apr 18, 2008
Posts: 10
Last: May 15, 2008
[view latest posts]
Level 0
Category: CoD2 SP Mapping
Posted: Sunday, May. 11, 2008 10:21 pm
TheModDoctor writes...
Quote:
i'll...


Okay, thats what I was thinking. Thanks for the help.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»