thanks, I did finally find it.
Code:
main() {
precacheModel("com_studiolight_hanging_off");
thread flicker();
}
flicker(){
while (true){
speed = .01;
height = -36;
spotlight_hide = getent("spotlight_hide", "targetname");
spotlight_model = getent( "spotlight_model", "targetname");
if(isdefined(spotlight_model) && isdefined(spotlight_hide)){
wait(randomfloat(0.6));
spotlight_hide movez (height, speed);
spotlight_model setmodel( "com_studiolight_hanging_off");
spotlight_hide waittill ("movedone");
wait(randomfloat(0.4)); spotlight_hide movez (height - (height * 2), speed);
spotlight_model setmodel( "com_studiolight_hanging_on" );
spotlight_hide waittill ("movedone");
} else {
wait(6);
iprintlnbold ("Warning !!! - missing assets");
}
}
}
This is what I was looking for, but what I ended up doing was making an FX that did what I wanted.
http://www.xfire.com/video/563bd9