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 Help with the music!
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#20
RE: Help with the music!


void OnStart()
{
PlayMusic("01_intro_dark.ogg", false, 1.0f, 1.0f, 0, true);
ShowPlayerCrossHairIcons(false);
FadeOut(0);
SetPlayerActive(false);
PlayMusic("01_intro.ogg", false, 1, 1, 1, false);
SetMessage("Intro", "Girl", 3);
StartScreenShake(0.2, 1, 2, 2);
FadeIn(10);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
GiveSanityDamage(5.0f, true);
AddTimer("Fade", 5, "FadeBlack");

}

void FadeBlack(string &in asTimer)
{
FadeImageTrailTo(0, 0);
SetPlayerMoveSpeedMul(0.4);
SetPlayerRunSpeedMul(0.1);
SetPlayerLookSpeedMul(0.3);
FadeRadialBlurTo(1.5, 3);
ShowPlayerCrossHairIcons(true);
SetPlayerActive(true);
}

void OnEnter()
{
SetEntityPlayerLookAtCallback("candle", "First", true);
AddUseItemCallback("", "key_01", "door_01", "UsedKeyOnDoor", true);
SetSwingDoorLocked("door_01", true, true);
}

void First(string &in asEntity, int alState)
{
AddTimer("", 1, "Msg");
}

void Msg(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "First", "");
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
AddTimer("", 2, "Warp");
}

void Warp(string &in asTimer)
{
TeleportPlayer("Warp");
AddTimer("", 15, "Murder");
}

void Murder(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "Second", "");
AddTimer("", 2, "WarpPlayer");
}

void WarpPlayer(string &in asTimer)
{
TeleportPlayer("last");
AddTimer("", 10, "Third");
}

void Third(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "Third", "");
}


void UsedKeyOnDoor(string &in asItem, string &in asEntity)

{
SetMessage("Fade", "Last", 3);
FadeOut(0);
PlaySoundAtEntity("", "24_iron_maiden.snt", "Player", 0, false);
PlaySoundAtEntity("", "unlock_door.snt", "door_01", 0, false);
RemoveItem("key_01");
AddTimer("",4, "Teleport");
}

void Teleport(string &in asTimer)
{
ChangeMap("02_Chapter_01", "PlayerStartArea_1", "", "");
}



------------

it doesn't work still.. Sad
04-19-2012, 06:59 PM
Find


Messages In This Thread
Help with the music! - by mrscoomich - 04-06-2012, 06:40 PM
RE: Help with the music! - by Datguy5 - 04-06-2012, 11:01 PM
RE: Help with the music! - by Zaari - 04-06-2012, 11:57 PM
RE: Help with the music! - by Xanthos - 04-07-2012, 12:12 AM
RE: Help with the music! - by mrscoomich - 04-08-2012, 03:39 AM
RE: Help with the music! - by Your Computer - 04-08-2012, 03:56 AM
RE: Help with the music! - by mrscoomich - 04-08-2012, 05:16 AM
RE: Help with the music! - by mrscoomich - 04-10-2012, 10:50 PM
RE: Help with the music! - by Xanthos - 04-10-2012, 11:23 PM
RE: Help with the music! - by mrscoomich - 04-10-2012, 11:34 PM
RE: Help with the music! - by Xanthos - 04-10-2012, 11:36 PM
RE: Help with the music! - by mrscoomich - 04-11-2012, 12:14 AM
RE: Help with the music! - by Mackiiboy - 04-11-2012, 12:30 AM
RE: Help with the music! - by mrscoomich - 04-11-2012, 12:32 AM
RE: Help with the music! - by Stepper321 - 04-11-2012, 02:14 PM
RE: Help with the music! - by jessehmusic - 04-11-2012, 02:34 PM
RE: Help with the music! - by Stepper321 - 04-11-2012, 02:46 PM
RE: Help with the music! - by mrscoomich - 04-18-2012, 11:14 PM
RE: Help with the music! - by Stepper321 - 04-19-2012, 05:22 PM
RE: Help with the music! - by mrscoomich - 04-19-2012, 06:59 PM
RE: Help with the music! - by mrscoomich - 04-21-2012, 06:20 PM
RE: Help with the music! - by Stepper321 - 04-22-2012, 11:15 AM
RE: Help with the music! - by mrscoomich - 04-22-2012, 11:50 PM
RE: Help with the music! - by JenniferOrange - 04-23-2012, 03:16 AM
RE: Help with the music! - by Stepper321 - 04-23-2012, 05:38 PM
RE: Help with the music! - by mrscoomich - 05-06-2012, 06:51 PM



Users browsing this thread: 1 Guest(s)