I am writing a script reddening screen. My task: to make a smooth appearance (as alpha image) of hud using global variables.
How do I do?
:state=0:dimlocalvar=alpha,setvar=alpha 100,state=1
:state=1:usegui=1,loadimage=health05 gamecore\huds\station13\interface\eyehud\eyehud1.dds
:state=1:makehud=myhud health05 health05 50 50,showhud=myhud
:state=1,plrwithinzone=1:sethudalpha=myhud %alpha,addvar=alpha 1
:state=1,plrwithinzone=0:subvar=alpha 1,sethudalpha=myhud %alpha
This method is not working. But if not, then what?
:state=0:dimlocalvar=alpha,setvar=alpha 100,state=1
:state=1:usegui=1,loadimage=health05 gamecore\huds\station13\interface\eyehud\eyehud1.dds
:state=1:makehud=myhud health05 health05 50 50,showhud=myhud
:state=1,plrwithinzone=1:plraddhealth=250,sethudalpha=%alpha,addvar=alpha 1
:state=1,plrwithinzone=0:subvar=alpha 1,sethudalpha=%alpha
or
:state=0:dimlocalvar=alpha,setvar=alpha 100,state=1
::sethudalpha=myhud %alpha
:state=1:usegui=1,loadimage=health05 gamecore\huds\station13\interface\eyehud\eyehud1.dds
:state=1:makehud=myhud health05 health05 50 50,showhud=myhud
:state=1,plrwithinzone=1:plraddhealth=250,addvar=alpha 1
:state=1,plrwithinzone=0:subvar=alpha 1
Help pls.