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


Thread Rating:
  • 3 Vote(s) - 2.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Big Problem: OH PLEASSE HELP ME OH GOD!!! Script Related
kewl Offline
Junior Member

Posts: 12
Threads: 3
Joined: Sep 2010
Reputation: 0
#3
RE: Big Problem: OH PLEASSE HELP ME OH GOD!!! Script Related

(11-27-2010, 07:08 PM)Kyle Wrote: you got to show us an example of one of the scripts.

I'm trying to do a wake up script. I copied it out of another thread: http://www.frictionalgames.com/forum/thread-4626.html


This is what my script looks like:

void onStart()
{
void wakeUp();
}
void wakeUp () {
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}




I can get into the map, but the script doesnt happen.
11-27-2010, 07:37 PM
Find


Messages In This Thread
RE: Big Problem: OH PLEASSE HELP ME OH GOD!!! Script Related - by kewl - 11-27-2010, 07:37 PM



Users browsing this thread: 2 Guest(s)