
Posts
480
Respect
48Add +1
Forum Rank
Perk Hacker
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. |
flag_wait("electricity_on");
lights_off hide();
lights_on show();
arrayShow()
{
for(i=0;i<self.size;i++)
self[i] Show();
}arrayHide()
{
for(i=0;i<self.size;i++)
self[i] Hide();
}![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
thread power_lighting();power_lighting()
{
lights_off = GetEntArray( "lights_off", "targetname" );
lights_on = GetEntArray( "lights_on", "targetname" );
for(i=0;i<lights_on.size;i++) //hide on lights
lights_on[i] hide();
flag_wait("electricity_on");
for(i=0;i<lights_off.size;i++) //hide off lights
lights_off[i] hide();
for(i=0;i<lights_on.size;i++) //show on lights
lights_on[i] show();
}
![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of 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. |
Nice idea. You should make them twinkle too, but not simultaneously though. Perhaps with randomfloatrange(.5,.9)?
![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
So if it gets a certain number it shows lights_on? That shouldnt be hard. Famous last words
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
didnt work, ingame error was just "asset fail" Heres what I found in the console.log http://pastebin.com/9AdAySAM I put the entire script at the end of mapname.gsc, and the thread power_lighting after zombie mode main
that doesnt sound like its me.. does commenting it out fix the error?
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |

power_lighting()
{
lights_off = GetEntArray( "lights_off", "targetname" );
lights_on = GetEntArray( "lights_on", "targetname" );
for(i=0;i<lights_on.size;i++) //hide on lights
lights_on[i] hide();
flag_wait("electricity_on");
for(i=0;i<lights_off.size;i++) //hide off lights
lights_off[i] hide();
for(i=0;i<lights_on.size;i++) //show on lights
lights_on[i] show();
thread flicker_lights(lights_off,lights_on);
}
flicker_lights(lights_off,lights_on)
{
while(1)
{
turn_christmas_lights_on(lights_off,lights_on);
wait .5;
turn_christmas_lights_off(lights_off,lights_on);
wait .5;
}
}
turn_christmas_lights_on(lights_off,lights_on)
{
for(i=0;i<lights_off.size;i++) //hide off lights
lights_off[i] hide();
for(i=0;i<lights_on.size;i++) //show on lights
lights_on[i] show();
}
turn_christmas_lights_off(lights_off,lights_on)
{
for(i=0;i<lights_off.size;i++) //show off lights
lights_off[i] show();
for(i=0;i<lights_on.size;i++) //hide on lights
lights_on[i] hide();
}![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |