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)
}
|