I don't know about a command for transparency and couldn't find nothing in the manual (if there is,I've missed it) can someone please help,that's important for the demo release.

It's basically a red transparent rectangle which covers the whole screen.FillScreenArea(int Area#, bool KeepVisible, float Alpha);
FillScreenArea(int Area#, bool KeepVisible, float Alpha, float R, float G, float B);
FillScreenArea(int Area#, bool KeepVisible, float Alpha, float R, float G, float B, int Left, int Top, int Right, int Bottom);
Fills a rectangle on the screen with a color and an alpha
Area# is a number between 0 and 19 that is used to distinguish between different FillScreenArea commands within one order.
KeepVisible keeps the rectangle processed and visible independent of the selected ThinkTime
Alpha defines the transparency of the filled rectangle (0 is fully transparent, 255 is fully solid)
R, G, B define the color to be used to fill the rectangle. Default color is black (0, 0, 0).
Left, Top, Right, Bottom define the rectangle in screen coordinates to be filled. If not specified, the full screen will be filled
Code: Select all
if(screenred > 0)
{
FillScreenArea(1,true,screenred,255,0,0);
if(redtime < self.time)
{
screenred = screenred - 5;
redtime = self.time + 0.05;
}
}
else
{
RemoveScreenArea(1);
}
Code: Select all
screenred = screenred + lastdamage*4;
Code: Select all
if(redtime < self.time)
Code: Select all
{
screenred [0]
redtime [0]
lasthealth [0]
Spawn[ ()
{
Console(true);
LowLevel("execute");
} ]
execute[ ()
{
if(GetAttribute("health","Player") < lasthealth)
{
FillScreenArea(1,true,screenred,255,0,0);
if(redtime < self.time)
{
screenred = screenred - 10;
redtime = self.time + 0.05;
}
}
else
{
RemoveScreenArea(1);
}
} ]
}
Code: Select all
execute[ ()
{
if(GetAttribute("health","Player") != lasthealth)
{
if(GetAttribute("health","Player") < lasthealth)
{
screenred = screenred + (lasthealth - GetAttribute("health","Player"))*4;
}
lasthealth = GetAttribute("health","Player");
}
if(screenred > 0)
{
FillScreenArea(1,true,screenred,255,0,0);
if(redtime < self.time)
{
screenred = screenred - 10;
redtime = self.time + 0.05;
}
}
else
{
RemoveScreenArea(1);
}
} ]
Code: Select all
if(GetAttribute("health","Player") < lasthealth)