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

Members Online

»
0 Active | 61 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 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
Page
Previous Page
subscribe
Author Topic: need a little help with a tutorial
SkyDog
General Member
Since: Aug 26, 2013
Posts: 14
Last: Sep 10, 2013
[view latest posts]
Level 1
Category: CoD4 MP Mapping
Posted: Sunday, Sep. 8, 2013 08:15 pm
So I've tried now to take this a step further and create other triggers with different targetnames and linked them to different sounds the same way they were just done for the first but I'm getting errors when I try to run the map. I just need some sort of road map on how to add lines to the script when I want to add a new sound and trigger.
This was what I was thinking would work but did not.


main()
{
maps\mp\_load::main();
maps\mp\_explosive_barrels::main();
thread serious();
thread newsound();
}
// main()


serious()
{
while(1)
{
wait 5;
trigger = getent("soundtrig","targetname");
sound = getent("soundai","targetname");
trigger waittill ("trigger");
sound playsound ("serious");
}
} // serious()

newsound()
{
while(1)
{
wait 5;
trigger = getent("newsoundtrig","targetname");
sound = getent("newsoundai","targetname");
trigger waittill ("trigger");
sound playsound ("newsound");
}
} // newsound()

But I guess it just isn't that simple...
Anyway, I'm stuck here at the moment, any input appreciated.

edited on Sep. 8, 2013 01:17 pm by SkyDog
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Monday, Sep. 9, 2013 10:40 pm
I'm offering to help, you gotta check your PM's. [cool]
Share |
SkyDog
General Member
Since: Aug 26, 2013
Posts: 14
Last: Sep 10, 2013
[view latest posts]
Level 1
Category: CoD4 MP Mapping
Posted: Tuesday, Sep. 10, 2013 12:46 am
DeekCiti writes...
Quote:
I'm offering to help, you gotta check your PM's. [cool]


Ok.
Share |
Restricted Access Topic is Locked
Page
Previous Page
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

»