draw_get_alpha_test_ref_value();
Returns: Real
You can use this function to find the current value for the
alpha test reference (default is 0, but you can use draw_set_alpha_test_ref_value
to set this value to something other than this).
if draw_get_alpha_test()
{
if draw_get_alpha_test_ref_value() < 254
{
draw_set_alpha_test_ref_value(254);
}
}
The above code checks to see if alpha testing is enabled, and if it is, it then checks the current alpha test reference value and sets it if it is less than 254.