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
Check this script!? Please?
jamistara Offline
Junior Member

Posts: 21
Threads: 7
Joined: Nov 2012
Reputation: 0
#1
Check this script!? Please?

I need help. I have checked this so many times and I don't see anything wrong.

void OnEnter()
{

}

void OnStart(){

AddTimer("Timer1", 0.01, "Intro1");
AddUseItemCallback("", "item_secret_mine_door_key_1", "door_1", "UsedKey", true);

}
void Intro1(string &in asTimer){

SetPlayerCrouching(true);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220);
FadeOut(0.01);
AddTimer("Timer2", 3, "Intro2");
PlayMusic("general_speaker_noise1.ogg", false, 7, 3, 6, false);
FadeRadialBlurTo(0.4, 0.02);
}
void Intro2(string &in asTimer){

FadeIn(5.5);
PlaySoundAtEntity("", "react_sigh.snt", "Player", 1, false);
AddTimer("Timer3", 3, "Intro3");

}
void Intro3(string &in asTimer){

FadePlayerRollTo(0.0f, 33.0f, 33.0f);
SetPlayerActive(true);
SetPlayerCrouching(false);
PlayMusic("Penumbra_BP_A1.ogg", true, 15, 3, 1, true);
SetPlayerMoveSpeedMul(0.3);
SetPlayerRunSpeedMul(0.6)
PlayMusic("Penumbra_BP_A1.ogg", false, 7, 3, 6, false);
}
void Message(string &in asEntity){

SetMessage("Messages", "Msg1", 3);

}
void UsedKey(string &in asItem, string &in asEntity){

SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem(asItem);
FadeRadialBlurTo(0.2, 2.5);
SetPlayerMoveSpeedMul(1);
SetPlayerRunSpeedMul(1)
}
06-17-2013, 01:20 PM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#2
RE: Check this script!? Please?

What is the error code your getting
e.g. (1,1) ERR: Unexpected "("

(This post was last modified: 06-17-2013, 01:30 PM by 7heDubz.)
06-17-2013, 01:30 PM
Find
jamistara Offline
Junior Member

Posts: 21
Threads: 7
Joined: Nov 2012
Reputation: 0
#3
RE: Check this script!? Please?

(06-17-2013, 01:30 PM)WIWWM Wrote: What is the error code your getting
e.g. (1,1) ERR: Unexpected "("

Hey, just when you answered, I found it!
Still, thank you!
06-17-2013, 01:45 PM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#4
RE: Check this script!? Please?

(06-17-2013, 01:45 PM)jamistara Wrote:
(06-17-2013, 01:30 PM)WIWWM Wrote: What is the error code your getting
e.g. (1,1) ERR: Unexpected "("

Hey, just when you answered, I found it!
Still, thank you!

Haha, anytime next time you need help make sure to post that code.

06-17-2013, 02:38 PM
Find




Users browsing this thread: 1 Guest(s)