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
Script Help Starting items
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#9
RE: Starting items

My .hps file of that level when i start

void OnStart()

{
SetPlayerLampOil(15);
SetPlayerHealth(50);
}

{
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();
SetMessage("TextCategory", "TextEntry", 0);
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(true);
FadeImageTrailTo(0,1);
}

03-08-2014, 10:48 PM
Find


Messages In This Thread
Starting items - by Straxedix - 03-08-2014, 05:06 PM
RE: Starting items - by Slanderous - 03-08-2014, 05:19 PM
RE: Starting items - by Straxedix - 03-08-2014, 05:22 PM
RE: Starting items - by Radical Batz - 03-08-2014, 06:45 PM
RE: Starting items - by DnALANGE - 03-08-2014, 05:28 PM
RE: Starting items - by Slanderous - 03-08-2014, 06:04 PM
RE: Starting items - by Mudbill - 03-08-2014, 06:46 PM
RE: Starting items - by Radical Batz - 03-08-2014, 06:46 PM
RE: Starting items - by Straxedix - 03-08-2014, 10:48 PM
RE: Starting items - by Radical Batz - 03-08-2014, 10:53 PM
RE: Starting items - by Romulator - 03-08-2014, 10:52 PM
RE: Starting items - by Romulator - 03-08-2014, 11:00 PM
RE: Starting items - by Radical Batz - 03-08-2014, 11:04 PM
RE: Starting items - by Straxedix - 03-08-2014, 11:01 PM
RE: Starting items - by Romulator - 03-08-2014, 11:04 PM
RE: Starting items - by Straxedix - 03-08-2014, 11:09 PM
RE: Starting items - by Romulator - 03-08-2014, 11:12 PM
RE: Starting items - by Straxedix - 03-08-2014, 11:15 PM
RE: Starting items - by Romulator - 03-08-2014, 11:29 PM
RE: Starting items - by Straxedix - 03-08-2014, 11:31 PM
RE: Starting items - by Mudbill - 03-08-2014, 11:42 PM
RE: Starting items - by Straxedix - 03-09-2014, 12:14 AM
RE: Starting items - by RaideX - 03-09-2014, 11:30 AM
RE: Starting items - by Straxedix - 03-09-2014, 10:58 PM



Users browsing this thread: 2 Guest(s)