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

Members Online

»
0 Active | 79 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: I cant see the locataion of trigger objectives ingame!
XtremeXcata
General Member
Since: Feb 12, 2012
Posts: 9
Last: Feb 26, 2012
[view latest posts]
Level 0
Category: CoD2 SP Mapping
Posted: Sunday, Feb. 19, 2012 08:52 am
Need help again with trigger objectives!![cry]!
When i go ingame to test my sp map,I cant see the location of trigger objectives! Why?? plz help
Share |
paulix90
General Member
Since: Aug 4, 2008
Posts: 70
Last: Jul 29, 2012
[view latest posts]
Level 3
Category: CoD2 SP Mapping
Posted: Monday, Feb. 20, 2012 07:50 am
First of all you have to make a trigger multiple and give it a targetname. And remember the coordinates.

After that you need to make a .str file :

Code:
VERSION          "1"
CONFIG           "C:\trees\cod2\bin\StringEd_PC.cfg"
FILENOTES        ""

REFERENCE        OBJ_REACH 
LANG_ENGLISH     "Reach rally point" //text ingame

ENDMARKER


Save it as mapname.str in CallofDuty2/main/localizedstrings/mapname.str

Now make a .gsc file :
Code:

#include maps\_utility;


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

          objective_1();
}

objective_1()
{
          obj1 = getent("obj_1", "targetname"); //replace the targetname with your targetname

          objective_add(1, "active", &"MAPNAME_OBJ_REACH", (-32, -708, 16 ));//replace the mapname and the coordinates
          objective_current(1);

          obj1 waittill("trigger"); 

          objective_state(1, "done"); 
}



edited on Feb. 20, 2012 12:51 am by paulix90
Share |
XtremeXcata
General Member
Since: Feb 12, 2012
Posts: 9
Last: Feb 26, 2012
[view latest posts]
Level 0
Category: CoD2 SP Mapping
Posted: Friday, Feb. 24, 2012 04:24 pm
How can i see my coordinates???[eek] I really dont know that.
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Friday, Feb. 24, 2012 04:52 pm
in radiant either look on the bottom there are 2 coordinates
or select your object and hit [N] and there is a key called 'origin' ~> that are the coordinates of your object
Share |
XtremeXcata
General Member
Since: Feb 12, 2012
Posts: 9
Last: Feb 26, 2012
[view latest posts]
Level 0
Category: CoD2 SP Mapping
Posted: Friday, Feb. 24, 2012 04:57 pm
Man i found it now! THX for your help![cool]
This is in my .gsc now

#include maps\_utility;
#include maps\_anim;
#using_animtree("generic_human");

main()
{
maps\_load::main();
maps\_mortarteam::main();
//maps\_mortarteam::anims();

level.player takeallweapons();
level.player giveWeapon ("m1garand");
level.player giveWeapon ("colt");
level.player giveWeapon ("fraggrenade");
level.player switchToWeapon ("m1garand");
thread obj1();

level.mortar = loadfx ("fx/explosions/artilleryExp_dirt_brown.efx");
}

obj1()
{

obj1 = getent("obj1", "targetname"); //the game finds the trigger

objective_add (1, "active", "Go forward!", (16, 160, 0 ));

objective_current(1); //current objective

obj1 waittill("trigger"); //wait till the trigger is triggered

objective_state(1, "done");

obj1 delete(); //deletes it

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

thread obj2(); //thread next objectives.
}

edited on Feb. 24, 2012 09:58 am by XtremeXcata
Share |
XtremeXcata
General Member
Since: Feb 12, 2012
Posts: 9
Last: Feb 26, 2012
[view latest posts]
Level 0
Category: CoD2 SP Mapping
Posted: Friday, Feb. 24, 2012 05:08 pm
Now I have a new kind of problem![banghead]
When i die with my g_connectpaths 1 from my shortcut,my game crash.[sad] Is there any way I can resolve this problem?
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

»