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

Members Online

»
0 Active | 6 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 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: 4 guys, same trig, then sound (HELP)
4codrazor
General Member
Since: Feb 23, 2012
Posts: 95
Last: Apr 7, 2016
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Sunday, Aug. 17, 2014 11:49 am
hey guys! sorry if the title was confusing but what i actually am asking is: -=-= I have 4 people that spawn at the same time by a trigger and i want music to play after it. i already know how to make music play and all that but i want to know how do i make it play when all 4 of them are dead ( if one is alive it wont play) because i have a really cool idea. Thanks for the help in advance -4codrazor [sniper]
Share |
MODDER_BC
General Member
Since: Oct 17, 2012
Posts: 54
Last: Jan 30, 2015
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Thursday, Aug. 21, 2014 04:00 am
I have something in a map I'm making that may be useful to you. I use actors not spawners. I have a trigger that sends them to their nodes. The two functions are as follows.

Code:

Music_On_Kill()
{
Trig = getent("spawn_trig","targetname"); // Trig that sends actors to nodes
Trig waittill ("trigger");
wait 1;
thread Count_Enemy();
}

//counts Actors plays music when all dead

Count_Enemy() 
{
while (1)
{
enemies = getentarray("spawnz","targetname"); 

for ( i=0; i < enemies.size; i++ )
                {

                 }
wait  .5;
if (enemies.size <= 0)
                {

               wait 1;

       level.ambient_track ["my_music"] = "ambient_music";
       set_ambient("my_music");
       break;
}
}
}

Share |
4codrazor
General Member
Since: Feb 23, 2012
Posts: 95
Last: Apr 7, 2016
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Thursday, Aug. 21, 2014 07:02 am
i didnt seem to get it work. it plays no sound even after adjusting some things. i havnt tried it with actors but i assume it works. ill keep adjusting until i get it. thanks modder_bc !
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 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

»