Frictional Games Forum (read-only)

Full Version: Reverse FadeSepiaColorTo
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can't seem to find the proper function to return the screen's sepia back to normal. I currently have this:
Code:
void MobEffect(string &in asEntity, int alState) {
    StartScreenShake(0.2f, 2, 0.1f, 0.5f);
    FadeSepiaColorTo(2, 1);
    AddTimer("", 5, "ModEffect2");
}
void MobEffect2(string &in asTimer) {
    FadeSepiaColorTo(0, 1);
}

I tried using FadeIn(5) as well, but that didn't seem to work either.
(03-25-2013, 10:05 PM)eagledude4 Wrote: [ -> ]I can't seem to find the proper function to return the screen's sepia back to normal. I currently have this:
Code:
void MobEffect(string &in asEntity, int alState) {
    StartScreenShake(0.2f, 2, 0.1f, 0.5f);
    FadeSepiaColorTo(2, 1);
    AddTimer("", 5, "ModEffect2");
}
void MobEffect2(string &in asTimer) {
    FadeSepiaColorTo(0, 1);
}

I tried using FadeIn(5) as well, but that didn't seem to work either.

FadeSepiaColorTo(0, 1);
That does work - your problem is with the name of the callback in the timer, it doesn't match the function name below it Smile

AddTimer("", 5, "ModEffect2");
void MobEffect2(string &in asTimer)
Herp Derp, nothing to see here.