The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: Amnesia Custom Story ERROR!
This should go here.
Anyways:
The timer thing: I think it's because you put 0 instead 0.1, or something like that. The other issue is that you have a ": )" instead a ")".
So, the script would be:
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "SewersKey", "SewersDoor", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player" , "ScriptArea_1" , "Murder" , true , 1);
AddEntityCollideCallback("Player", "Walk_Quest_Area", "GetWalkQuest", true, 1);
AddEntityCollideCallback("Player", "Walk_Complete_Area", "FinishWalkQuest", true, 1);
Addtimer("pianotimer", 0.1, "pianotimer");
AddEntityCollideCallback("Player", "pianostop", "pianostop", true, 1);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("SewersDoor", false, true);
PlaySoundAtEntity("", "unlock_door", "SewersDoor", 0, false);
RemoveItem("SewersKey");
}
void Murder(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("murder" , true);
}
void GetWalkQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("walkquest", "WalkQuest");
}
void FinishWalkQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("walkquest", "WalkQuest");
}
void pianotimer(string &in asTimer)
{
PlaySoundAtEntity("piano", "general_piano03", "piano", 0, false);
Addtimer("pianotimer", 18, "pianotimer");
}
void pianostop(string &in asParent, string &in asChild, int alState)
{
StopSound("piano", 0);
RemoveTimer("pianotimer");
SetLeverStuckState("piano", 0, true);
AddPropImpulse("piano", 0, 0, 100, "World");
PlaySoundAtEntity("piano", "break_wood", "piano", 0, false);
CreateParticleSystemAtEntity("", "ps_dust_impact.ps", "impact", false);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|