Frictional Games Forum (read-only)
[SCRIPT] for(int) [SOLVED] - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] for(int) [SOLVED] (/thread-25765.html)

Pages: 1 2


RE: for(int) [SOLVED] - Mudbill - 07-28-2014

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); 



RE: for(int) [SOLVED] - Lizard - 07-28-2014

apreciate it Mudbil, but already got it to work


RE: for(int) [SOLVED] - Mudbill - 07-29-2014

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.


RE: for(int) [SOLVED] - Lizard - 07-29-2014

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