Frictional Games Forum (read-only)
Custom Story: OnStart Scripting 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: Custom Story: OnStart Scripting Help (/thread-21046.html)



Custom Story: OnStart Scripting Help - RurouniMori - 04-04-2013

First off, I apologize if this isn't the right subforum to post this here, just let me know if it isn't.

I'm trying to script it so that when the games starts, the Player's screen blurs and a message comes on the screen with it. Except that, admittedly, I know very little about C++ scripting so I've been learning as I go. So, I was just wondering how i need to script it to make this 'event' happen. This is what I have:

Quote:////////////////////////////
// Run when entering map
void OnEnter()
{
OnStart(FadeRadialBlurTo(5, 5.0f);
SetMessage("Narration","startmessage",5.0f);
}
void OnStart(string &in asEntity)

If someone could please let me know how I'm supposed to properly void after and maybe some tips for coding, along with what I need to fix this, that would be wonderful. Thank you!


RE: Custom Story: OnStart Scripting Help - OriginalUsername - 04-04-2013

Wrong place. You should go to the development support for this

Edit: and your problem: you have all the onstart, onenter and onleave mixed up. You don't need onleave or onenter for this, onstart should do it.

Void OnStart()
{
Functions and stuff
}


RE: Custom Story: OnStart Scripting Help - RurouniMori - 04-04-2013

Ah, okay. Sorry about that! Thanks though!