
Posts
2,789
Respect
230Add +1
Forum Rank
King of the Zombies
Primary Group
Community Daedra
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!electric_perks_dialog()
{
self endon ("warning_dialog");
level endon("switch_flipped");
timer = 0;
while(1)
{
wait .5;
players = get_players();
for(i = 0; i < players.size; i++)
{
dist = DistanceSquared(players[i].origin, self.origin);
if(dist > 70 * 70)
{
timer = 0;
continue;
}
if(dist < 70 * 70 && timer < 3)
{
wait .5;
timer ++;
}
if(dist < 70 * 70 && timer == 3)
{
players[i] thread do_player_vo("vox_start", 5);
wait 3;
self notify("warning_dialog");
IPrintLnBold("warning_given");
}
}
}
}

Looks like an old function that warns the player to turn the power on. Probably used in verruckt/Shi No Numa/Some other test map.
but the strange thing is i can call this function on my perks trigger and on waw perk triggers and nothing happens ?!? any idea why