![]() |
Fadein help - 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: Fadein help (/thread-12290.html) |
Fadein help - eagledude4 - 01-02-2012 Solved RE: Timer help - Statyk - 01-02-2012 (01-02-2012, 06:03 PM)eagledude4 Wrote:I'm not the best with if functions to be honest, but I have an IDEA: Code: if (GetTimerTimeLeft("FadeTimer") == 0);{ RE: Timer help - Your Computer - 01-02-2012 For starters, you might want to get rid of the semicolon at the end of the if statement. Secondly, timer callbacks get called when they reach 0 time left anyway, so why check for 0 time? RE: Timer help - eagledude4 - 01-02-2012 (01-02-2012, 08:38 PM)Your Computer Wrote: For starters, you might want to get rid of the semicolon at the end of the if statement. Secondly, timer callbacks get called when they reach 0 time left anyway, so why check for 0 time? I fixed the semicolon after I pasted the code. I didn't realize the timer launched the function automatically. Problem is still persisting. RE: Timer help - eagledude4 - 01-03-2012 Help please? RE: Timer help - Statyk - 01-03-2012 Did you check my example for testing? RE: Timer help - Your Computer - 01-03-2012 (01-03-2012, 12:39 AM)eagledude4 Wrote: Help please? With what? Isn't the code example inside a callback, specifically a timer callback that loops? RE: Timer help - eagledude4 - 01-03-2012 (01-03-2012, 02:08 AM)Statyk Wrote: Did you check my example for testing? Yes I did, it didn't work. I ended up fixing what you pasted, and have: Code: void StartGame() { That code gives me two errors though, on these lines: Code: PlaySoundAtEntity("big_clock_chime", "Custom\big_clock_chime.snt", "clock_grandfather_1", 0, false); Code: if (GetTimerTimeLeft("FadeTimer") == 0)) { (01-03-2012, 02:37 AM)Your Computer Wrote:Help with my timer not calling my function. I don't know what you mean, exactly.(01-03-2012, 12:39 AM)eagledude4 Wrote: Help please? RE: Timer help - Statyk - 01-03-2012 Can I see your whole .hps so I can see your callbacks? RE: Timer help - eagledude4 - 01-03-2012 (01-03-2012, 04:01 AM)Statyk Wrote: Can I see your whole .hps so I can see your callbacks? Code: bool TriggeredEnemy; |