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

Members Online

»
0 Active | 22 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 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
Page
Previous Page
subscribe
Author Topic: again the mission objectives :S
Hoesjma
General Member
Since: Aug 7, 2007
Posts: 193
Last: Jan 18, 2009
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Friday, Jan. 16, 2009 09:18 pm
nope its the complete code and i really dont see when a script is finished or not cos im a total noob with scripting [duh]
Share |
tomalla
General Member
Since: Jan 16, 2007
Posts: 393
Last: Jun 10, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Friday, Jan. 16, 2009 09:20 pm
Is this line:

for (i=0;i

complete in your opinion? [cry]
Share |
Hoesjma
General Member
Since: Aug 7, 2007
Posts: 193
Last: Jan 18, 2009
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Friday, Jan. 16, 2009 09:22 pm
i dont flicking know :P i just copied it from another forum topic
Share |
tomalla
General Member
Since: Jan 16, 2007
Posts: 393
Last: Jun 10, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Friday, Jan. 16, 2009 09:29 pm
[banghead]

OK. I bet you have only one german officer. Give him targetname officer. Now replace obj2 function with this one:

Code:

obj2()
{ 
	officer = getent("officer","targetname");
	objective_add (2, "active", "Eliminate the German officer", officer.origin);
	objective_current (2); 
	officer thread obj2_follow();
	officer waittill("death");
	objective_state(2,  "done");

	//obj3();

}

obj2_follow()
{
	self endon("death");
	while (1)
	{
		wait 0.5;
		objective_position(2, self.origin);
	}
}


This script will make star on compass move, while officer might be moving. I've already created link to another objective function ... [drink]
Share |
Hoesjma
General Member
Since: Aug 7, 2007
Posts: 193
Last: Jan 18, 2009
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Friday, Jan. 16, 2009 09:35 pm
so could you post the file exactly as it should be? :)
Share |
tomalla
General Member
Since: Jan 16, 2007
Posts: 393
Last: Jun 10, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Friday, Jan. 16, 2009 09:53 pm
...

Code:

main()
{
	maps\_flak88::main("xmodel/german_artillery_flak88");
	maps\_load::main();
	maps\poep_fx::main();

	level.player takeallweapons();
	level.player giveWeapon ("m1garand");
	level.player giveWeapon ("thompson");
	level.player giveWeapon ("fraggrenade");
	level.player switchToWeapon ("m1garand");

	springfield = getent("springfield_obj","targetname");
	
	objective_add(1, "active", "Pick up the Springfield", springfield .origin);
	objective_current(1);

	while(!level.player hasweapon("springfield"))
		wait .1;

	objective_state(1,  "done");
	
	obj2();

}

obj2()
{ 
	officer = getent("officer","targetname");
	objective_add (2, "active", "Eliminate the German officer", officer.origin);
	objective_current (2); 
	officer thread obj2_follow();
	officer waittill("death");
	objective_state(2,  "done");

	obj3();

}

obj2_follow()
{
	self endon("death");
	while (1)
	{
		wait 0.5;
		objective_position(2, self.origin);
	}
}
Share |
Restricted Access Topic is Locked
Page
Previous Page
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

»