
Posts
165
Respect
20Add +1
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
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. |
test_script()
{
self endon("death");
self endon("disconnect");
self waittill("spawned_player");
self thread radius_check();
}
radius_check()
{
while(1)
{
if (self isonground(true))
{
iprintln ( "Player is on the ground" );
wait 0.1;
}
if (self isonground(false))
{
iprintln ( "Player is not on the ground" );
wait 0.1;
}
else
{
continue;
wait 0.1;
}
}
}


![]() | 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 |
init()
{
level thread on_player_conect();
}
on_player_conect()
{
while(1)
{
level waittill( "connecting", player ); // here you defined 'player' by using the waittill
player thread on_player_spawned();
}
}
on_player_spawned() // player threads this function, so player is now become 'self'
{
self endon( "disconnect" );
while(1)
{
self waittill( "spawned_player" );
self thread radius_check();
}
}
radius_check()
{
self endon("death");
self endon("disconnect");
while(1)
{
if (self isonground(true))
{
iprintln ( "Player is on the ground" );
wait 0.1;
}
if (self isonground(false))
{
iprintln ( "Player is not on the ground" );
wait 0.1;
}
else
{
continue;
wait 0.1;
}
}
}
if (self isonground(true))
{
iprintln ( "Player is on the ground" );
wait 0.1;
}
if (self isonground(false))
{
iprintln ( "Player is not on the ground" );
wait 0.1;
}
if( self isonground() == true ) // or simply: if( self isonground() )
{
iprintln ( "Player is on the ground" );
wait 0.1;
}
if( self isonground() == false ) // or: if( !self isonground() )
{
iprintln ( "Player is not on the ground" );
wait 0.1;
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
while(1)
{
self waittill( "spawned_player" );
self thread radius_check()
}![]() | |
![]() | 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. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
![]() | 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. |
continue;
wait 0.1;![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Missing end-line at that function call. (add ; )