


Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!harrybo21_perks_spawn_swapping_perk_machine()
{
//fusorf edit
if(level.round_number % 5 == 0)
{
[...]
Aye mate you don't know me so y don't you shut tf up ok buddy
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Box Mappers Elite | |
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Hello everyone.
I am using HarryBo21's swapping perk machine prefab (like in moon).
The script is designed like so : the perks swap every rounds. But I would like them to swap every 5 rounds.
I already tried this, without sucess:
in _zombiemode_perks.gsc
line 1244 Code SnippetPlaintextharrybo21_perks_spawn_swapping_perk_machine()
{
//fusorf edit
if(level.round_number % 5 == 0)
{
[...]
The above code does not work, the perk machines still swaps every round.
harrybo21_perks_swapping_perk_watch_for_reset()
{
while( 1 )
{
level waittill( "between_round_over" );
triggers = getEntArray( "harrybo21_swapping_vending", "script_noteworthy" );
if ( !isDefined( triggers ) || triggers.size < 1 || level.round_number % 5 != 0) // Check here, continue if not valid round.
continue;
level.round_swapped = false;
}
}
In the function "harrybo21_perks_swapping_perk_watch_for_reset()" try: Code SnippetPlaintextharrybo21_perks_swapping_perk_watch_for_reset()
{
while( 1 )
{
level waittill( "between_round_over" );
triggers = getEntArray( "harrybo21_swapping_vending", "script_noteworthy" );
if ( !isDefined( triggers ) || triggers.size < 1 || level.round_number % 5 != 0) // Check here, continue if not valid round.
continue;
level.round_swapped = false;
}
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Box Mappers Elite | |
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Works perfectly, thank you very much