07-25-2012, 10:18 PM
Please someone help me, i cant get my map to open, i get this error "FATAL ERROR: Could not load script file 'custom_stories/Test/maps/01.hps(01 is the name of the .map file too)!' main (8,32): ERR : Expected data type"
////////////////////////////
// Run first time starting map
void OnEnter()
{
AddUseItemCallback("", "DoorKey_1", "EXAMPLE_DOOR", "UsedKeyOnDoor", true);
}
void MyFunc(string &in asItem, &in asEntity)
{
SetSwingDoorLocked("EXAMPLE_DOOR", false, true);
PlaySoundAtEntity("", "unlock_door", "EXAMPLE_DOOR", 0, false);
RemoveItem(DoorKey_1);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
Thank you!!
////////////////////////////
// Run first time starting map
void OnEnter()
{
AddUseItemCallback("", "DoorKey_1", "EXAMPLE_DOOR", "UsedKeyOnDoor", true);
}
void MyFunc(string &in asItem, &in asEntity)
{
SetSwingDoorLocked("EXAMPLE_DOOR", false, true);
PlaySoundAtEntity("", "unlock_door", "EXAMPLE_DOOR", 0, false);
RemoveItem(DoorKey_1);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
Thank you!!