Can a DrawMaterialOverlay effect be used on a timer?
1 replies, posted
I don't have an exact code but I'd just like to know if I could use DrawMaterialOverlay and display a material for 2-3 seconds and then go back to the normal screen?
Using just the example from the wiki:
[lua]function DrawBinoc()
DrawMaterialOverlay( "effects/combine_binocoverlay.vmt", 0.1 )
end
hook.Add( "RenderScreenspaceEffects", "BinocDraw", DrawBinoc )
timer.Simple(3, function()
hook.Remove( "RenderScreenspaceEffects", "BinocDraw" )
end)[/lua]
Sorry, you need to Log In to post a reply to this thread.