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

some questions and problems

broken avatar :(
Created 13 years ago
by KDXDARK
0 Members and 1 Guest are viewing this topic.
3,334 views
broken avatar :(
×
broken avatar :(
Relentless Mapper
Location: ar
Date Registered: 21 August 2011
Last active: 4 days ago
Posts
1,323
Respect
Forum Rank
Zombie Colossus
Primary Group
Nuclear
My Groups
More
Personal Quote
This game isn't meant to be played
×
KDXDARK's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Nuclear
Nuclear
DARKLEGION's requested title
Mapper Has released one or more maps to the UGX-Mods community.
KDXDARK's Contact & Social Links
1)_ i create a fuction and i do it work in some gamemodes, but how i do it only works with timed gameplay in that gamemodes.

example:
Code Snippet
Plaintext
if(level.ugxm_settings["gamemode"] == 0 || level.ugxm_settings["gamemode"] == 2 )
{
   example();
}
2)_ when i add a song in the jukebox the model disappears and it works, but if remove the song the model appears but it dont work :(

3)_i create a fuction to add song to the jukebox(this work perfect), but how i do to delete the model?, it dont play the sound "cha_ching" and "no_cha_ching".
Code Snippet
Plaintext
song1_buy()
{
    user = undefined;
    cost = 1000;                                        //change to cost that you want

    self setCursorHint("HINT_NOICON");
    self UseTriggerRequireLookAt();
    //self setHintString("The power must be activated first");                //remove line if you want it to work without power

   //flag_wait( "electricity_on" );                                //remove line if you want it to work without power

    self setHintString("press &&1 to buy a song [Cost: "+cost+"]");            //text hint trigger

    while(1)
    {
        self waittill("trigger", user);
        if( is_player_valid(user) && user.score >= cost )
        {
            play_sound_at_pos( "cha_ching", self.origin );
            user thread maps\_zombiemode_score::minus_to_player_score( cost );
            self delete();

thread maps\ugx_jukebox::add_song("Gotcha bitch", "song1");
wait(0.1);

        }
        else
        {
            play_sound_at_pos( "no_cha_ching", self.origin );
wait(0.1);
        }
wait(0.1);
    }
}
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 7 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
Signature

(Click to enter portfolio)
×
SajeOne's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
1. You can use this to detect timed gameplay:
Code Snippet
Plaintext
level.ugxm_settings["timed"]

2. That's strange. I would make sure the process is being done correctly. The video I showed you shows the process I used and it worked fine for me if you would like to refer there.(Video)
Spoiler: click to open...
(Video)

3. What model are you trying to delete? The Jukebox model? O_o
Last Edit: November 16, 2013, 04:34:12 pm by SajeOne
broken avatar :(
×
broken avatar :(
Relentless Mapper
Location: ar
Date Registered: 21 August 2011
Last active: 4 days ago
Posts
1,323
Respect
Forum Rank
Zombie Colossus
Primary Group
Nuclear
My Groups
More
Personal Quote
This game isn't meant to be played
×
KDXDARK's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Nuclear
Nuclear
DARKLEGION's requested title
Mapper Has released one or more maps to the UGX-Mods community.
KDXDARK's Contact & Social Links

3. What model are you trying to delete? The Jukebox model? O_o

i am triying to delete the CD model of the songs, not the jukebox!
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 7 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
×
SajeOne's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
i am triying to delete the CD model of the songs, not the jukebox!
You are trying to delete the CD inside the machine? Not gonna have any luck with that, the whole jukebox is a single model with multiple influences.
broken avatar :(
×
broken avatar :(
Relentless Mapper
Location: ar
Date Registered: 21 August 2011
Last active: 4 days ago
Posts
1,323
Respect
Forum Rank
Zombie Colossus
Primary Group
Nuclear
My Groups
More
Personal Quote
This game isn't meant to be played
×
KDXDARK's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Nuclear
Nuclear
DARKLEGION's requested title
Mapper Has released one or more maps to the UGX-Mods community.
KDXDARK's Contact & Social Links
You are trying to delete the CD inside the machine? Not gonna have any luck with that, the whole jukebox is a single model with multiple influences.
no this is not related with the jukebox, i want to do when guy active the trigger it delete the model
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 7 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
×
SajeOne's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
no this is not related with the jukebox, i want to do when guy active the trigger it delete the model
just get the model with the getent function and then do "model delete();" or "model hide();" in script(depending on if you wanna use it again or not).

 
Loading ...