Frictional Games Forum (read-only)

Full Version: Custom Story: OnStart Scripting Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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
}
Ah, okay. Sorry about that! Thanks though!