Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function check_lights()
- for n=1 to lightcounter
- if light[n].lightmode>0
- select light[n].lightmode
- case 1
- dec light[n].delay
- if light[n].delay<=0
- if light[n].lswitch=0
- light[n].lswitch=1
- light[n].delay=5
- SetPointLightcolor(light[n].lightID,0,0,0)
- elseif light[n].lswitch=1
- light[n].lswitch=0
- light[n].delay=5
- setpointlightcolor(light[n].lightID,light[n].r,light[n].g,light[n].b)
- endif
- endif
- endcase
- case 2
- endcase
- endselect
- endif
- next n
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement