01-20-2015, 07:00 PM
My code has got unexpected end but i dont know where or how since I can't see anything that doesn't not work.
PHP Code:
void OnStart()
{
AddUseItemCallback("", "Key1", "Door1", "UseKeyOnDoor", true);
AddEntityCollideCallback("Player", "ZoneCollide, "Dialogue", true, 1);
}
void UseKeyOnDoor("Key1", "Door1")
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "door_unlock.snt", asEntity, 0, false);
RemoveItem(asItem)
}
void PlayRecord(string &in asEntity, int alState)
{
if(alState == 1)
{
PlaySoundAtEntity("", "grapevine.snt", asEntity, 0, true);
}
}
void Dialogue(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
AddEffectVoice("agony1", "", "Dialogue", "", false, asParent, 2, 20);
StartPlayerLookAt("lookat1", 2, 2, "");
AddTimer("T1", 8.5f, "Lookat");
GiveSanityDamage(5.0f, true);
}
void Lookat(string &in asTimer)
{
StopPlayerLookAt();
StartPlayerLookAt("lookat2", 2, 2, "");
AddTimer("T2", 14.0f, "Lookat2");
}
void Lookat2(string &in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);
}