07-07-2012, 10:34 PM
It says:
"FATAL ERROR: main (21,23) : ERR : Expected identifier"
This is a copy of the .hps file:
lckd = Locked door name
PS: I don't know if it might have something to do with the error. But the key you must use, you get it on the level before this one.
"FATAL ERROR: main (21,23) : ERR : Expected identifier"
This is a copy of the .hps file:
Quote:////////////////////////////secret1 = Key name
// Run when the map starts
void OnStart()
{
AddEntityCollideCallback("Player", "script_slam", "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);
}
AddUseItemCallback("", "secret1", "lckd", "unlock", true);
void unlock(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(lckd, false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(secret1);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
lckd = Locked door name
PS: I don't know if it might have something to do with the error. But the key you must use, you get it on the level before this one.