goalreadymc
07-18-2014, 03:34 AM
im testing my custom story and when i get to the map its crashes. i think ive done my scripting wrong. can anyone examine it?
[/align]
Code:
void OnStart()
{
PlayMusic("09_amb_safe.ogg", true, 3, 3, 1, true);
}
{
AddUseItemCallback("", "cellar_key", "cellar_door", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("cellar_door", false, true);
PlaySoundAtEntity("", "unlock_door", "cellar_door, 0, false);
RemoveItem("cellar_key");
}