



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!
onPlayerConnect()
{
for(;;)
{
level waittill("connecting_player", player);
player VisionSetNaked("vision_file");
}
}
![]() | |
![]() | 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 |
Anyone know how i can change the player's vision when they connect / spawn
i have tried this and it didn't work sadly Code SnippetPlaintextonPlayerConnect()
{
for(;;)
{
level waittill("connecting_player", player);
player VisionSetNaked("vision_file");
}
}
#include maps\_utility;
#include common_scripts\utility;
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;;)
{
level waittill( "connecting", player );
player thread onPlayerSpawned();
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;;)
{
self waittill( "spawned_player" );
}
}player VisionSetNaked("vision", 0.1);
connecting_player isn't a valid notify.
Use this as your base Code SnippetPlaintext#include maps\_utility;
#include common_scripts\utility;
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;;)
{
level waittill( "connecting", player );
player thread onPlayerSpawned();
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;;)
{
self waittill( "spawned_player" );
}
}
As to vision useAlso that vision will probably be overwritten by the set_all_players_visionset since it's set in map script (createart). Code SnippetPlaintextplayer VisionSetNaked("vision", 0.1);

As to vision useAlso that vision will probably be overwritten by the set_all_players_visionset since it's set in map script (createart). Code SnippetPlaintextplayer VisionSetNaked("vision", 0.1);
