06.03.2016, 19:11
Quote:
|
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);
}
}
|
Still no problem, will do (edit; done in 1.0.1).
__________________________
v1.0.2: Normal leveling to prevent texture overlapping.

