

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 shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
When finishing a soul box, the clip(targetname , soul_chest _clip) around the soul box does not disappear. So after its gone, you cant move through where the clip should have been deleted. Is this a glitch? Or is the clip not supposed to be deleted?
clip Delete();
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
chest_anims()
chest_clip Delete();
chest_anims()
{
///////////////////////////////////////////////////// EDIT AMOUNT OF KILLS NEEDED HERE /////////////////////////////////////////////////////////////////////////////
chest_1_kills = 12;
chest_2_kills = 25;
chest_3_kills = 45;
chest_4_kills = 65;
chest_5_kills = 90;
chest_6_kills = 140;
///////////////////////////////////////////////////// EDIT AMOUNT OF KILLS NEEDED HERE /////////////////////////////////////////////////////////////////////////////
chest_clip = getentarray( "soul_chest_clip" , "targetname" );
self.max_count = undefined;
if( level.chest_completed == 0 )
{
if( level.chest_counting == 1 )
{
self.max_count = chest_1_kills;
}
else if( level.chest_counting == 2 )
{
self.max_count = chest_2_kills;
}
else if( level.chest_counting == 3 )
{
self.max_count = chest_3_kills;
}
else if( level.chest_counting == 4 )
{
self.max_count = chest_4_kills;
}
else if( level.chest_counting == 5 )
{
self.max_count = chest_5_kills;
}
else if( level.chest_counting == 6 )
{
self.max_count = chest_6_kills;
}
}
else if( level.chest_completed >= 1 )
{
if( level.chest_counting + level.chest_completed == 2 )
{
self.max_count = chest_2_kills;
}
if( level.chest_counting + level.chest_completed == 3 )
{
self.max_count = chest_3_kills;
}
if( level.chest_counting + level.chest_completed == 4 )
{
self.max_count = chest_4_kills;
}
if( level.chest_counting + level.chest_completed == 5 )
{
self.max_count = chest_5_kills;
}
if( level.chest_counting + level.chest_completed == 6 )
{
self.max_count = chest_6_kills;
chest_clip Delete();
}
}
chest = Spawn( "script_model" , self.origin-(0,0,16) );
chest.angles = self.angles;
chest SetModel( "blst_soul_chest_active" );
chest.animName = "blst_chest_anim";
chest UseAnimTree(#animtree);
chest SetAnim(%blst_soul_chest_open);
chest playsound( "chest_close_lid" );
wait 0.2;
chest playsound( "chest_open");
self chest_idle_fx( chest );
wait 2;
self thread soul_chest_idle_anims( chest );
self waittill( "chest_full" );
if( self.max_count == self.death_count || self.death_count >= 9000 )
{
level.chest_counting--;
chest playsound( "chest_full") ;
wait 0.3;
chest playsound( "chest_full") ;
wait 1;
chest playsound( "chest_full2") ;
chest playsound( "chest_close_lid" );
for(i=0;i<chest_clip.size;i++)
{
if( chest IsTouching( chest_clip[i] ) == true )
{
chest_clip[i] delete();
}
}
chest clearAnim( self.idle_anim ,0);
chest SetAnim(%blst_soul_chest_close_full);
wait 1;
chest playsound( "chest_full2" );
wait 2.1;
chest delete();
self delete();
}
else if( self.max_count < self.death_count )
{
iprintlnbold( "death count exceeded due to timeout" );
}
else if( self.max_count > self.death_count )
{
level.chest_counting--;
self.death_count = -10;
chest playsound( "chest_close_lid" );
chest clearAnim( self.idle_anim ,0);
chest SetAnim(%blst_soul_chest_close_notfull);
wait 0.7;
chest delete();
self thread spawn_initial_model();
}
}
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
for(i=0;i<chest_clip.size;i++)
{
if( chest IsTouching( chest_clip[i] ) == true )
{
chest_clip[i] delete();
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
Well My issue is I hae the radius in a separate area of the box for geographical reasons
clip = getent( self.target, "targetname" );
clip delete();
chest_clip = getentarray( "soul_chest_clip" , "targetname" );
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Make the trigger target the clip ( select trigger, select clip -> press "W" ), so you know wich clip belongs to wich chest.
Then instead of the Original lines to delete the clip do this: Code SnippetPlaintextclip = getent( self.target, "targetname" );
clip delete();
btw, if you do what Isaacscott935 says, you delete all the clips of all the chests at once ( it's an array ): Code SnippetPlaintextchest_clip = getentarray( "soul_chest_clip" , "targetname" );
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
Sorry Bluntstuffy. I didn’t read your full script.
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
last time that i checked - they works