Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Story: OnStart Scripting Help
RurouniMori Offline
Junior Member

Posts: 11
Threads: 3
Joined: Apr 2013
Reputation: 0
#1
Custom Story: OnStart Scripting Help

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!
04-04-2013, 08:58 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#2
RE: Custom Story: OnStart Scripting Help

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
}
(This post was last modified: 04-04-2013, 09:03 PM by OriginalUsername.)
04-04-2013, 09:01 PM
Find
RurouniMori Offline
Junior Member

Posts: 11
Threads: 3
Joined: Apr 2013
Reputation: 0
#3
RE: Custom Story: OnStart Scripting Help

Ah, okay. Sorry about that! Thanks though!
04-04-2013, 09:05 PM
Find




Users browsing this thread: 1 Guest(s)