[FilterScript] Blood splatter from gunshots!
#5

Quote:
Originally Posted by Pottus
View Post
You can do this without the need for any variables at all actually do it like this.

Code:
forward FadeBlood(objectid, alpha, time);
public FadeBlood(objectid, alpha, time)
{
    alpha -= 5;
    if(alpha) {
        SetDynamicObjectMaterial(objectid, 0, -1, "none", "none", 0xFF0000 | (alpha << 24));
        SetTimerEx("FadeBlood", time, false, "iii", objectid, alpha, time);
    }
	else {
        DestroyDynamicObject(objectid);
    }
}
Yeah but what's the harm in two variables in a super small filterscript...?

Still no problem, will do (edit; done in 1.0.1).

__________________________


v1.0.2: Normal leveling to prevent texture overlapping.
Reply


Messages In This Thread
Blood splatter from gunshots! - by Crayder - 06.03.2016, 17:26
Re: Blood splatter from gunshots! - by Crystallize - 06.03.2016, 17:27
Re: Blood splatter from gunshots! - by Pottus - 06.03.2016, 17:54
Re: Blood splatter from gunshots! - by Stones - 06.03.2016, 18:02
Re: Blood splatter from gunshots! - by Crayder - 06.03.2016, 19:11
Re: Blood splatter from gunshots! - by CounterTDM - 06.03.2016, 20:05
Re: Blood splatter from gunshots! - by Pottus - 06.03.2016, 21:58
Re: Blood splatter from gunshots! - by Crayder - 06.03.2016, 22:02
Re: Blood splatter from gunshots! - by Pottus - 06.03.2016, 22:06
Re: Blood splatter from gunshots! - by Crayder - 06.03.2016, 22:11
Re: Blood splatter from gunshots! - by DEATHSTROKE - 06.03.2016, 22:24
Re: Blood splatter from gunshots! - by Amunra - 07.03.2016, 10:05
Re: Blood splatter from gunshots! - by MicroKyrr - 07.03.2016, 11:01
Re: Blood splatter from gunshots! - by Karan007 - 11.03.2016, 07:12
Re: Blood splatter from gunshots! - by HydraHumza - 11.03.2016, 08:08
Re: Blood splatter from gunshots! - by Logic_ - 11.03.2016, 11:57
Re: Blood splatter from gunshots! - by Arithmetic - 11.03.2016, 15:51
Re: Blood splatter from gunshots! - by VenusDarkX - 11.03.2016, 15:55
Re: Blood splatter from gunshots! - by Glossy42O - 12.03.2016, 06:54
Re: Blood splatter from gunshots! - by JamalMaddox - 12.03.2016, 06:56
Re: Blood splatter from gunshots! - by markparker12 - 12.03.2016, 17:48
Re: Blood splatter from gunshots! - by Unrea1 - 15.03.2016, 20:38
Re: Blood splatter from gunshots! - by Ducati - 15.03.2016, 21:22
Re: Blood splatter from gunshots! - by Crayder - 15.03.2016, 21:38
Re: Blood splatter from gunshots! - by N0FeaR - 20.03.2016, 14:11
Respuesta: Blood splatter from gunshots! - by Whyd - 21.03.2016, 14:58
Re: Blood splatter from gunshots! - by iKevin - 06.04.2016, 13:38
Re: Blood splatter from gunshots! - by RogerCosta - 06.04.2016, 15:18
Re: Blood splatter from gunshots! - by Greggu - 17.07.2016, 20:49
Re: Blood splatter from gunshots! - by Crayder - 17.07.2016, 20:53
Re: Blood splatter from gunshots! - by Ivan_Ino - 17.07.2016, 21:22
Re: Blood splatter from gunshots! - by UltraScripter - 17.07.2016, 21:34
Re: Blood splatter from gunshots! - by Greggu - 17.07.2016, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)