Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help for(int) [SOLVED]
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#11
RE: for(int) [SOLVED]

Why not just use SetLampLit("Lamp_"+i, false, true)?

PHP Code: (Select All)
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); 

(This post was last modified: 07-28-2014, 05:21 PM by Mudbill.)
07-28-2014, 05:16 PM
Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#12
RE: for(int) [SOLVED]

apreciate it Mudbil, but already got it to work

CURRENT PROJECT:
A Fathers Secret == Just started
07-28-2014, 08:33 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#13
RE: for(int) [SOLVED]

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.

(This post was last modified: 07-29-2014, 12:41 AM by Mudbill.)
07-29-2014, 12:41 AM
Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#14
RE: for(int) [SOLVED]

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

CURRENT PROJECT:
A Fathers Secret == Just started
07-29-2014, 07:31 AM
Find




Users browsing this thread: 1 Guest(s)