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

Members Online

»
0 Active | 12 Guests
Online:

LATEST FORUM THREADS

»
water
CoD4 MP Mapping
Rainbow HELP....
CoD4 MP 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 4
Category: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Target Range
ReDoX
General Member
Since: Jul 3, 2012
Posts: 29
Last: Feb 11, 2013
[view latest posts]
Level 2
Category: CoD4 MP Mapping
Posted: Sunday, Aug. 19, 2012 08:35 am
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 09:41 am
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: 29
Last: Feb 11, 2013
[view latest posts]
Level 2
Category: CoD4 MP Mapping
Posted: Sunday, Aug. 19, 2012 10:02 am
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 10:26 am
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: 29
Last: Feb 11, 2013
[view latest posts]
Level 2
Category: CoD4 MP Mapping
Posted: Monday, Aug. 20, 2012 06:55 am
I dont understand what the script says. It would be nice if you could explain how to get what I want.
Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP Mapping

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»