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

Set Vision Script Fix

broken avatar :(
Created 7 years ago
by jiggy22
0 Members and 1 Guest are viewing this topic.
1,454 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2016
Last active: 1 year ago
Posts
229
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
jiggy22's Groups
jiggy22's Contact & Social Linksarchdukesquidlyllljiggy22
For my mod, I have this simple script set up to change the vision to something a little nicer-looking:

Code Snippet
Plaintext
PowerVision_init()
{
flag_wait( "all_players_connected" );
players = get_players();
for ( i = 0; i < players.size; i++ )
players[i] thread PowerVision();
}
PowerVision()
{
self endon("disconnect");
set_all_players_visionset( "aftermath", 0.1 );
}

However, this only goes into effect after I restart the level. Otherwise, my first game features no changes to the vision. Any way this can be fixed? Thanks!
Marked as best answer by jiggy22 7 years ago
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 3 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
respect the dead

donates greatly appreciated :) paypal.me/F3ARxReaper666
discord server:
https://discord.gg/tsGHW99
×
death_reaper0's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
why dont you change it in the mapname_art.gsc where its suppose to be set?

Code Snippet
Plaintext
	level thread maps\_utility::set_all_players_visionset( "zombie_factory", 0.1 );
}
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2016
Last active: 1 year ago
Posts
229
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
jiggy22's Groups
jiggy22's Contact & Social Linksarchdukesquidlyllljiggy22
why dont you change it in the mapname_art.gsc where its suppose to be set?

Code Snippet
Plaintext
	level thread maps\_utility::set_all_players_visionset( "zombie_factory", 0.1 );
}

Whelp, I'm stupid! Thanks again as always :)

 
Loading ...