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

Members Online

»
0 Active | 81 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 subscribe
Author Topic: Triggered sount script check plz?
one_richard
General Member
Since: Aug 24, 2007
Posts: 279
Last: May 11, 2009
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Tuesday, Sep. 2, 2008 11:49 am
I got this, and works fine.

Quote:

main()
{
thread glass();
}
glass()
{
trig=getent("glass_trig","targetname");
trig waittill( "trigger" );
trig playsound ("glass_break" );

}



but what if a want to add another triggered sound?

Somethig like this?

Quote:

main()
{
thread glass();
}
glass()
{
trig=getent("glass_trig","targetname");
trig waittill( "trigger" );
trig playsound ("glass_break" );

}

{
thread glass2();
}
glass2()
{
trig=getent("glass_trig2","targetname");
trig waittill( "trigger" );
trig playsound ("glass_break" );

}

Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD4 MP Mapping
Posted: Tuesday, Sep. 2, 2008 07:42 pm
Almost correct...you only need to call the glass2 function from inside your main function, just like you did with the glass one, instead of like you're doing now, calling the glass2 function from outside another one.
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD4 MP Mapping
Posted: Tuesday, Sep. 2, 2008 07:44 pm
Code:
main()
{
thread glass();
thread glass2();
}
glass()
{
trig=getent("glass_trig","targetname");
trig waittill( "trigger" );
trig playsound ("glass_break" );
}
glass2()
{
trig=getent("glass_trig2","targetname");
trig waittill( "trigger" );
trig playsound ("glass_break" );

}
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD4 MP Mapping
Posted: Tuesday, Sep. 2, 2008 07:54 pm
There is a very easy and quick way to see if something works.... try it.
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

»