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

Members Online

»
0 Active | 9 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 4
Category: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Target Range
ReDoX
General Member
Since: Jul 3, 2012
Posts: 32
Last: Jun 27, 2013
[view latest posts]
Level 2
Category: CoD4 MP Mapping
Posted: Sunday, Aug. 19, 2012 03:35 pm
Im making a target range map. I have 14 targets in total. I have scripted to make any random target come up at once. Now I want to make it say the score when I shoot the target. So I made triggers and linked them to the targets.
So for eg the script for one target says:

x= 14 - RandomInt(13);
if (x==1)
{
target1 movez (64, 0.5, 0, 0);
target1 waittill ("movedone");
trigger waittill ("movedone");
iPRINTlnbold("score");
target1 movez("-64, 0.5, 0, 0);
target1 waittill ("movedone");
}


What I want is that when the target comes up, it waits for a second, and then goes back down. It shouldnt wait for the trigger. But if the trigger is hit, the score is displayed. How can I do that?
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD4 MP Mapping
Posted: Sunday, Aug. 19, 2012 04:41 pm
I've answered this exact-same question before when COD4 mod tools were first released:

Download this map for COD1:

http://callofduty.filefront.com/file/Rifle_Range;40691

Unzip the GSC for it and use the code in it as a guide for your own code.
Share |
ReDoX
General Member
Since: Jul 3, 2012
Posts: 32
Last: Jun 27, 2013
[view latest posts]
Level 2
Category: CoD4 MP Mapping
Posted: Sunday, Aug. 19, 2012 05:02 pm
I dont know how to get the GSC from that zip. Can you just explain to me how the script works?
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD4 MP Mapping
Posted: Sunday, Aug. 19, 2012 05:26 pm
ReDoX writes...
Quote:
I dont know how to get the GSC from that zip. Can you just explain to me how the script works?


It's a PK3 file - open it with WinRar (free to download and use).
Share |
ReDoX
General Member
Since: Jul 3, 2012
Posts: 32
Last: Jun 27, 2013
[view latest posts]
Level 2
Category: CoD4 MP Mapping
Posted: Monday, Aug. 20, 2012 01:55 pm
I dont understand what the script says. It would be nice if you could explain how to get what I want.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP 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

»