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

Members Online

»
0 Active | 8 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 subscribe
Author Topic: need help in objectives
Spiritualkid
General Member
Since: May 28, 2008
Posts: 27
Last: Mar 26, 2013
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Sunday, Mar. 3, 2013 04:09 pm
well ive added my map some objectives

when ive added the first it showed the star on compass and worked well

when ive added the second objective my star icon moved to the second objective's place and the game set the second objective to active

by the way ive not completed the first objective how can 1 solve this problem?

Code:
objective_1() {  box4 = getent("box4_trigger", "targetname"); objective_add(1, "active", &"training2_OBJ1", box4.origin); objective_current(1); box4 waittill("trigger");//Player touches the trigger  objective_state(1, "done");  }  objective_2() {  explode_trig = getent("dam_trig", "targetname"); objective_add(2, "current", &"training2_OBJ2", explode_trig.origin); objective_current(2); explode_trig waittill ("trigger"); objective_state(2, "done");  }  objective_3() {  grenade = getent("grenade_trigger", "targetname"); objective_add(3,"current",&"grenade", grenade.origin); objective_current(3); grenade waittill("trigger");//Player touches the trigger  objective_state(3, "done");  }
Share |
3st0nian
General Member
Since: Jan 14, 2008
Posts: 291
Last: Dec 4, 2017
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Wednesday, Mar. 6, 2013 10:43 am
I made a mistake earlier. Delete all objective_current lines. Also in objective_add change "active" to "current".

edited on Mar. 6, 2013 03:45 am by 3st0nian
Share |
Spiritualkid
General Member
Since: May 28, 2008
Posts: 27
Last: Mar 26, 2013
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Wednesday, Mar. 6, 2013 04:16 pm
i solved it earlyer :D ive threaded the objectives after another so it works :D
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

»