09-27-2012, 05:51 AM
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "templekey", "startdoor_nextmap", "UsedKeyOnDoor", true);
}
Void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("startdoor_nextmap", false, true);
PlaySoundAtEntity("", "unlock_door", "startdoor_nextmap", 0, false);
RemoveItem("templekey");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
The error: FATAL ERROR: Could not load script file 'custom_stories/MLP/maps/start.hps
main(9,1): ERR :'Void is not a data type
main(9,1): ERR :'Void is not a data type
main(10,1): ERR : Not all paths return a value
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "templekey", "startdoor_nextmap", "UsedKeyOnDoor", true);
}
Void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("startdoor_nextmap", false, true);
PlaySoundAtEntity("", "unlock_door", "startdoor_nextmap", 0, false);
RemoveItem("templekey");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
The error: FATAL ERROR: Could not load script file 'custom_stories/MLP/maps/start.hps
main(9,1): ERR :'Void is not a data type
main(9,1): ERR :'Void is not a data type
main(10,1): ERR : Not all paths return a value