05-26-2013, 07:04 PM
void OnStart()
{
AddUseItemCallback("", "key_tomb_rusty_1", "level_wood_1", "FUNCTION", true);
}
When i did this it said:
FATAL ERROR:Could not load script file 'custom_stories/the broken hell-prologue/maps/saco.hps'!
Please help
EDIT:It is now working!
{
AddUseItemCallback("", "key_tomb_rusty_1", "level_wood_1", "FUNCTION", true);
}
PHP Code:
void OnEnter()
{
}
void OnLeave()
{
}
void FUNCTION(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked(''level_wood_1'', false);
PlayGuiSound("unlock_door.snt", door, 0, false);
RemoveItem("key_tomb_rusty_1");
}
When i did this it said:
FATAL ERROR:Could not load script file 'custom_stories/the broken hell-prologue/maps/saco.hps'!
Please help
EDIT:It is now working!