Hello Again ! Sorry if i post much of this but is a forum
I,ve done a little script but it dont work when i try to start my custom story i get this error message : Fatal Error : could not load script file !
And my script looks like ! and if i delete the part with the door it works its really enoying so if someone knows please help !
SPERMAHAREN
void OnStart()
{
AddUseItemCallback("", "Key1", "Door", "FUNCTION", true);
}
void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door", false, true);
PlaySoundAtEntity("", "unlock_door", "Door", 0, false);
RemoveItem("Key1");
}
//////// KEY 1 DONE
{
AddEntityCollideCallback("Player", "script_1", "func_slam", true, 1);
}
void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("door2", true, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false); PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}