UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Gunrock12

I can't get my multiple triggers with the same targetname to work! it works fine if it
is a simple GetEnt but as soon as i changed it into a GetEntArray all triggers fail to activate.

I almost got this solved! any help is appreciated thank you.


function soundbox1()////////PLAYS SOUND LOOP WHILE PLAYER IS IN THE TRIGGER


{

 



soundbox1_trig = GetEntArray( "area_sound1","targetname" );


soundbox1_trig waittill("trigger", player);


players = GetPlayers();
for (i = 0; i < players.size; i++)

              

   

   

             while(1)

   
            {

    

   

         

      
                    while(!(players istouching(soundbox1_trig)))

       

           

           
                   
                  wait 0.5;

       

       

       

           

         
  

               iprintlnbold("playing sound");

           
               players PlayLoopSound( "jack" );

           

            

            wait 8;

        
      }
}


5 years ago
I have two triggers both looping while the players stand it. one starts the music while the other trigger stops it

while the player stands in it. The problem is once the player stands in the stop looping sound second trigger the music keeps on playing.
How do i get the music to stop playing in the second trigger the player stands in?






function soundbox1()////////PLAYS SOUND LOOP WHILE PLAYER IS IN THE TRIGGER


{

 
soundbox1_trig = GetEnt("area_sound1", "targetname");


soundbox1_trig waittill("trigger");



players = GetPlayers();

for (i = 0; i < players.size; i++)

              

   

   

while(1)

   
{

       

       

 while(!(players istouching(soundbox1_trig)))

       

           

           

wait 0.5;

       

       

       

           

           
 iprintlnbold("playing sound");

           
players PlayLoopSound( "jack" );

           

           

wait 8;

       

   
}
 
}








function soundbox1_stop()////////STOPS SOUND LOOP WHILE PLAYER IS IN THE TRIGGER


{


soundbox2_trig = GetEnt("area_sound2", "targetname");


soundbox2_trig waittill("trigger");



players = GetPlayers();

for (i = 0; i < players.size; i++)

              

   

   

while(1)

   
 {

       

       

 while(!(players istouching(soundbox2_trig)))

       

           

           

 wait 0.5;

       

       

       

           

           

iprintlnbold("stoping sound");

          
players StopLoopSound( "jack" );/////////THIS DOSEN'T WORK SOUND STILL PLAYS!

           

           

           

wait 8;

       

   
}

}


5 years ago
I'm trying to have a room the player steps into have its own ambient sound. not place a script_struct and have it loop. for example the zm_giant.map
they have trigger_multiple brush textured with a sound_trigger texture and a targetname   ambient_package and script_ambientroom  factory_largeroom.
when i tried this it didn't work also watched this video by  UGO aka Wakka on Tutorial 6 - Adding Sounds - Ambient - Reverb - Bumps, watched like a bunch of times
and still couldn't get it to work!! please help me somebody! I know someone has this working.
5 years ago
How do i add a winning circle to my map  at the end of each match? I remember there was a video on this
but can't find it.
5 years ago
As of right now you can't, don't know why they didn't put it in this one like cod4 and waw. would of liked to make some
custom sp maps also.
5 years ago
How do I stretch a texture across a single brush face? In old cod4 radiant it was the ctrl+f key combo
but in bo3 radiant this does something else. ???
6 years ago
I have a script where i the player goes inside a building from the outside and the Ambient changes.
but once the player touches the trigger i get this error:

Error
script runtime error
[see console for details

type string is not a float

here is my script:


amb_set1()
{


amb_set1 = getent("amb_outside1", "targetname");
amb_set1 waittill("trigger", player);

while(1)
   {
   
    amb_set1 waittill("trigger", player);
    wait(1);
    iprintlnbold ("play out sound dude");
    AmbientStop("amb_chech_night1v3_lsrs");
    wait(1);


    AmbientPlay("bf_battle");
   }


}








7 years ago
The update fix the problem! all is well on the russian front for now :)
7 years ago
yeah having the same problem also. the update broke the compile process!
7 years ago
i got the jellyfish animation to work by copying out of the
prefabe mp Combine map and pasteing it into my  map :D
7 years ago
how do i place animated models with the "fxanim" name in them
like the p7_fxanim_gp_jellyfish_blue_01_smod for example I get this error that pops

up saying, "Failed to create siege 'misc_model'.
Could not find compatible sanim." What does this mean?
7 years ago
This might be a silly question here do we still have to make detail that we put in our map into detail brushes
or thats no longer needed. cause never seen anyone mention this.
7 years ago
When i compile my map i get this:


^1ERROR: 'p7_eth_decor_01_rock_01' is not a valid physpreset asset

  physpreset:p7_eth_decor_01_rock_01
    xmodel:p7_toilet_bathroom

what does "is not a valid physpreset asset" mean?
Also i did a entity list search of all my models in map
i have the p7_toilet_bathroom in my map but not the
  p7_eth_decor_01_rock_01 is nowhere in my map!?

can this be fixed or its a radiant odd bug or something?
The map still runs and it finished compiling and all.


7 years ago
Also when compiling the map it spotted the famous Brush plane with no normal do to me
copying and pasteing triggers instead of dragging it from the entity browser box caused it!
7 years ago
Radiant refuse to open my map anymore to fix the problem  or compile it!
during the compile process i get this error:



WARNING: PROBLEMS FOUND [Load with Error File in Radiant]
WARNING: Texture (t7_metal_rust_02) repeats more than once per inch. (x1)
      C:/Program Files (x86)/Steam/steamapps/common/Call of Duty Black Ops III/\map_source\zm\zm_black_manor.map
         entity 0 brush 6454 at -1660 1408 -718

then compile will finish with radiant_modtools.exe has stop working

this error also displays when i try to open the map in radiant to try to fix the problem :'(

Please can my map be restored!





Double Post Merge: February 20, 2017, 11:19:59 pm
okay i was able to recover my map from radiant autosave_backup! so all is well! :lol:
7 years ago
Loading ...