Frictional Games Forum (read-only)
SetMessage 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: SetMessage help! (/thread-12340.html)



SetMessage help! - KSukoshi - 01-04-2012

Hello, somebody can help a freaking newb ? XD
I do not quite understand one thing on hlp2.
How can put two SetMessage in the void OnStart() after another?


Code:
SetMessage("Intro", "msg1", 4.0f); when the SetMessage with "msg1" ends.

how i can initialize other SetMessage after this?
Sorry if my english is bad, my native language is japanese, and i'm learning portuguese. XD




RE: SetMessage help! - flamez3 - 01-04-2012

You have to use timers,

Use this in the normal function block:
Quote:AddTimer("timer_1", 4.2f, "Timer_1");

And this in a new block

Quote:void Timer_1(string &in asTimer)
{
SetMessage("Intro", "msg1", 4.0f);
}



RE: SetMessage help! - KSukoshi - 01-04-2012

Wow, it's easy, I can not believe I did not understand, now I understand what it is for the timers. i think... XD
But it's work! Thanks Big Grin