////////////////////////////
//Run First Time Starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Music_1", "start", true, 1)
}
void start(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "Scary.snt", "Player", 0, false);
}
AddUseItemCallback("", "key_Tomb_1", "Doortodeath_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("Doortodeath_1", false);
PlaySoundAtEntity("", "unlock_door", "Doortodeath_1", 0.0f, false);
RemoveItem("key_Tomb_1");
AddDebugMessage("Key On Door", false);
}
AddEntityCollideCallback("Player", "Music_1", "start", true, 1)
}
void start(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "Scary.snt", "Player", 0, false);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
Im tired of looking and if i mess with it it get's worse...Please...Help me...