Frictional Games Forum (read-only)
[SOLVED] Permanent Image Trail - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SOLVED] Permanent Image Trail (/thread-14195.html)



[SOLVED] Permanent Image Trail - Damascus - 03-24-2012

I want to put a permanent image trail on the screen after the start of what's going to evolve into a chase scene, but for the life of me, I can't seem to get it to work, despite the fact that it should be so simple.

Here's my script:
Spoiler below!
void TimerShadowArrives(string &in asTimer)
{
StartScreenShake(0.1f,6.0f,2.0f,2.0f);
PlaySoundAtEntity("", "guardian_activated.snt", "Player", 0, false);
FadeLightTo("BoxLight_1", 0.0f, 0.0f, 0.0f, 0.0f, -1, 0.25f);
FadeLightTo("BoxLight_2", 0.3f, 0.0f, 0.0f, 0.0f, -1, 1);
FadeImageTrailTo(2.0f, 1.0f);
SetEntityActive("level_dungeon_1", false);
SetEntityActive("level_dungeon_2", true);
SetPropActiveAndFade("slime_6way_3", true, 1.0f);
SetPropActiveAndFade("slime_pile_1", true, 1.0f);
SetPropActiveAndFade("slime_pile_2", true, 1.0f);
AddEntityCollideCallback("Player", "SlimeCollide_1", "SlimeAppear1", true, 1);
AddEntityCollideCallback("Player", "SlimeCollide_2", "SlimeAppear2", true, 1);
}

The slime appears, the guardian roars, the screen shakes. Everything works as it's supposed to except the Fade Image Trail. Any reason this wouldn't be working? I also tried using (2,1) instead of (2.0f,1.0f), but it still doesn't work.

EDIT: Never mind, of course I just found out why it wasn't working when I post. I had an insanity area that turned off Image Trails when you left it. Case closed.