Frictional Games Forum (read-only)

Full Version: for(int) [SOLVED]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Why not just use SetLampLit("Lamp_"+i, false, true)?

PHP Code:
for(int i 1<= 13i++)
{     
    
SetLampLit("Lamp_"+ifalsetrue)
    
CreateParticleSystemAtEntity("ps_dust_whirl""ps_dust_whirl.ps""Lamp_"+ifalse);
}
PlaySoundAtEntity("laugh""00_laugh.ogg""Player"0false);
GiveSanityDamage(40true); 
apreciate it Mudbil, but already got it to work
Fair enough, I just thought using SetLampLit would be smoother than SetLightVisible because it has the effect of turning it on or off, whereas SetLightVisible instantly takes effect.
I know. Its just had such a long pause that I forgot half of the functions, so I have to get into it again.

But SetLampLit will be used further ahead, as it is properly not the last time I need some light to get blown out
Pages: 1 2