
Posts
2,789
Respect
230Add +1
Forum Rank
King of the Zombies
Primary Group
Community Daedra
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!
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
example_loop() //INFINITE LOOP
{
while(1)
{
iprintln("Hello");
}
}example_loop() //NOT INFINITE LOOP
{
while(1)
{
wait 0.5; // Needed wait timer (or waittill can be here)
iprintln("Hello");
}
}


[/url]![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has released one or more maps to the UGX-Mods community. |
My map freezes everytime after the first few seconds from the game start from an 'infinite loop', now I've had this before and usually it's caused by a typo on one of my KVPs, however I've checked every KVP and in my scripts and I can't find any? The strange thing is the freeze only occurs on solo (co-op is fine) and if I pause and restart the game it no longer happens?
Anyone have any ideas?
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
No I used the UGX script placer, the weird part is that the freeze only happens in solo though, so I think it's gotta be related to something unique to solo mode? The only thing I can think of is Quick Revive but it's been in the map longer than the freeze and I haven't changed it in any way.. ???
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Yes, but I'm pretty sure I added the wait that you mentioned on that topic...but I will double check anyway
get_player_index(player)
{
wait 0.05;
assert( IsPlayer( player ) );
assert( IsDefined( player.entity_num ) );
players = get_players();
if(players.size == 1)
return player.entity_num_randomized;
else
return player.entity_num;
}![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
My map freezes everytime after the first few seconds from the game start from an 'infinite loop', now I've had this before and usually it's caused by a typo on one of my KVPs, however I've checked every KVP and in my scripts and I can't find any? The strange thing is the freeze only occurs on solo (co-op is fine) and if I pause and restart the game it no longer happens?
Anyone have any ideas?
self myfunction();
//versuses
self thread myfunction();
myfunction(){
while(1){
iprintln("This never stops");
wait(.1);
}
}