09-30-2010, 10:35 AM
Hello every one as the thread subject states whenever is try to load my custom story i get "Unexpected end of file" and i cant figure out for the life of me what to do??
This is my simple script
///////////////////////////
//Run first time starting map
void OnStart()
{
AddUseItemCallback("", "StorageKey_1", "keydoor_1", "UsedKeyonDoor", true);
void UsedKeyonDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(keydoor_1, false, true);
PlaySoundAtEntity("", "guardian_activated1", "Player", 0, false);
RemoveItem(StorageKey_1);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
This is my simple script
///////////////////////////
//Run first time starting map
void OnStart()
{
AddUseItemCallback("", "StorageKey_1", "keydoor_1", "UsedKeyonDoor", true);
void UsedKeyonDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(keydoor_1, false, true);
PlaySoundAtEntity("", "guardian_activated1", "Player", 0, false);
RemoveItem(StorageKey_1);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}