UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

change players vision on connect

broken avatar :(
Created 11 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
1,409 views
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
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 Snippet
Plaintext
onPlayerConnect()
{
        for(;;)
        {
                level waittill("connecting_player", player);
                player VisionSetNaked("vision_file");
        }
}
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
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 Snippet
Plaintext
onPlayerConnect()
{
        for(;;)
        {
                level waittill("connecting_player", player);
                player VisionSetNaked("vision_file");
        }
}
connecting_player isn't a valid notify.

Use this as your base
Code Snippet
Plaintext
#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 use
Code Snippet
Plaintext
player VisionSetNaked("vision", 0.1);
Also that vision will probably be overwritten by the set_all_players_visionset since it's set in map script (createart).
Last Edit: July 28, 2015, 12:40:02 am by DidUknowiPwn
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
connecting_player isn't a valid notify.

Use this as your base
Code Snippet
Plaintext
#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 use
Code Snippet
Plaintext
player VisionSetNaked("vision", 0.1);
Also that vision will probably be overwritten by the set_all_players_visionset since it's set in map script (createart).

ah thats my bad i must've rushed this forum post cause this is my actual onPlayerConnect



Double Post Merge: July 28, 2015, 12:51:39 am
As to vision use
Code Snippet
Plaintext
player VisionSetNaked("vision", 0.1);
Also that vision will probably be overwritten by the set_all_players_visionset since it's set in map script (createart).
Thanks for the quick reply dukip and this worked :D

 
Loading ...