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
Is there an easier way to do this?
Nikson. Offline
Member

Posts: 134
Threads: 22
Joined: Feb 2013
Reputation: 4
#3
RE: Is there an easier way to do this?

(04-03-2014, 03:26 PM)Mudbill Wrote: I haven't messed around much with ropes, but if you need to use a for loop to disable lights one second after the other, use something like this:

PHP Code: (Select All)
for(int i 0<= 10i++) {
    
AddTimer(ii"TimerDisableLight");


Edit 10 in the loop for as many lights you have.

PHP Code: (Select All)
void TimerDisableLight(string &in asTimer)
{
    
FadeLightTo("LightName_"asTimer000001);


I imagine something like that would work fine. Tell me if you have any problems with it.

Thank you very much Mudbill! You're awesome!
04-03-2014, 03:37 PM
Find


Messages In This Thread
Is there an easier way to do this? - by Nikson. - 04-03-2014, 02:44 PM
RE: Is there an easier way to do this? - by Nikson. - 04-03-2014, 03:37 PM



Users browsing this thread: 1 Guest(s)