


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!![]() | 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. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
zones = [];
zones[ zones.size ] = "start_zone";
zones = [];
zones[ zones.size ] = "start_zone";
zones[ zones.size ] = "another_zone";//another_zone will be replaced by the name of the zone you put other structs in
//zones[ zones.size ] = "yes_another_zone";//yes_another_zone will be replaced by the name of the zone you put other structs in
coop_player_spawn_placement()
{
structs = getstructarray( "initial_spawn_points", "targetname" );
coop_player_spawn_placement()
{
never_same_area = 1;//make undefined or 0 if you don't mind the same area in a row possibility
randomstarts = GetStructArray( "randomize_start","targetname" );
randnum = randomInt(randomstarts.size);
if(IsDefined( never_same_area ) && never_same_area && randomstarts.size>1){
if(randnum==getdvarint("laststart")){
if(randnum==(randomstarts.size-1)) randnum = 0;
else randnum++;
}
}
setdvar("laststart",randnum);
randomstart = randomstarts[randnum];
structs = [];
allstructs = GetStructArray( "initial_spawn_points", "targetname" );
for( i=0;i<allstructs.size;i++ ){
//distance of 150 may need adjusted depending on how you space your structs
if(Distance( allstructs[i].origin,randomstart.origin )<150) structs[structs.size] = allstructs[i];
}
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | 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. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Wow great work ,you really did simplify it for people +1
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() | 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. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Oh wow, thank you
Great work. Thanks