Advertisement
Guest User

Untitled

a guest
Mar 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. function check_lights()
  2.         for n=1 to lightcounter
  3.             if light[n].lightmode>0
  4.                 select light[n].lightmode
  5.                     case 1
  6.                         dec light[n].delay
  7.                         if light[n].delay<=0                       
  8.                             if light[n].lswitch=0
  9.                                 light[n].lswitch=1
  10.                                 light[n].delay=5
  11.                                 SetPointLightcolor(light[n].lightID,0,0,0)                         
  12.                             elseif light[n].lswitch=1
  13.                                 light[n].lswitch=0
  14.                                 light[n].delay=5
  15.                                 setpointlightcolor(light[n].lightID,light[n].r,light[n].g,light[n].b)
  16.                             endif                          
  17.                         endif
  18.                     endcase
  19.                     case 2
  20.                     endcase
  21.                 endselect
  22.             endif
  23.         next n
  24. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement