I'm useing screenfade....
But how do I get the duration to last for 2 seconds? I'm just not sure what "type" i.e. ms or s the message accepts...
I'm doing:
Create_ScreenFade( iAttacker, 2, (1<<10), (1<<12), 0, 0, 0, 255 );
Code:
stock Create_ScreenFade(id, duration, holdtime, fadetype, red, green, blue, alpha){
message_begin( MSG_ONE,gmsgScreenFade,{0,0,0},id )
write_short( duration ) // fade lasts this long duration
write_short( holdtime ) // fade lasts this long hold time
write_short( fadetype ) // fade type (in / out)
write_byte( red ) // fade red
write_byte( green ) // fade green
write_byte( blue ) // fade blue
write_byte( alpha ) // fade alpha
message_end()
}
Thanks,
Josh
__________________