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?
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Is there an easier way to do this?

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.

(This post was last modified: 04-03-2014, 03:28 PM by Mudbill.)
04-03-2014, 03:26 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 Mudbill - 04-03-2014, 03:26 PM



Users browsing this thread: 1 Guest(s)