07-16-2013, 10:35 AM
Once I go to play my map this comes up!
FATAL ERROR:Could not load script file
'custom_stories/Tutorial/maps/maps1.hps'!
main (14, 1) :ERR :Unexpected token '{'
Heres the map1.hps
////////////////////////////
// This runs when the player enters the map
void OnEnter()
{
AddUseItemCallback("", "escape_door_key1", "escape_room_door1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("escape_room_door1", false, true);
PlaySoundAtEntity("", "unlock_door", "escape_room_door1", 0, false);
RemoveItem("escape_door_key1");
}
{
AddUseItemCallback("", "lol_key1", "lol_door1", "UsedKeyOnDoor2", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("lol_door1", false, true);
PlaySoundAtEntity("", "unlock_door", "lol_door1", 0, false);
RemoveItem("lol_key1");
PlayMusic("Without_You_.ogg", false, 1, 0, true);
}
//===========================================
// This runs when the player leaves the map
void OnLeave()
{
}
HELP ME!!!
FATAL ERROR:Could not load script file
'custom_stories/Tutorial/maps/maps1.hps'!
main (14, 1) :ERR :Unexpected token '{'
Heres the map1.hps
////////////////////////////
// This runs when the player enters the map
void OnEnter()
{
AddUseItemCallback("", "escape_door_key1", "escape_room_door1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("escape_room_door1", false, true);
PlaySoundAtEntity("", "unlock_door", "escape_room_door1", 0, false);
RemoveItem("escape_door_key1");
}
{
AddUseItemCallback("", "lol_key1", "lol_door1", "UsedKeyOnDoor2", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("lol_door1", false, true);
PlaySoundAtEntity("", "unlock_door", "lol_door1", 0, false);
RemoveItem("lol_key1");
PlayMusic("Without_You_.ogg", false, 1, 0, true);
}
//===========================================
// This runs when the player leaves the map
void OnLeave()
{
}
HELP ME!!!