12-06-2013, 08:45 PM
I have a problem with my CS
Starting my custom story the game crashes and send me a Fatal Error:
FATAL ERROR: Could not load script file 'custom_stories/.......'!
main 9,1):ERR :Expected ',' or ';'
My script file:
void OnStart()
{
PlaySoundAtEntity("", "21_scream8.snt", "ScriptScream_1", 0, false);
AddUseItemCallback("", "foolkey1", "foollevel_wood_1", "open1", true);
AddEntityCollideCallback("vase02_ghost_1", "AreafoolGhost1", "ghostscare1", true, -1);
}
void open1(string &in asItem, string &in asEntity)
void ghostscare1(string &in asParent, string &in asChild, int alState)
{
SetPropHealth(asParent, 0);
PlaySoundAtEntity("ghost_released", "03_in_a_bottle", "Player", 0, false);
GiveSanityDamage(10, true);
SetLevelDoorLocked("foollevel_wood_1", false);
PlaySoundAtEntity("", "Unlock_Door", "foollevel_wood_1", 0, false);
RemoveItem("foolkey1");
}
void OnLeave()
{
}
void OnEnter()
{
}
Help please.
Starting my custom story the game crashes and send me a Fatal Error:
FATAL ERROR: Could not load script file 'custom_stories/.......'!
main 9,1):ERR :Expected ',' or ';'
My script file:
void OnStart()
{
PlaySoundAtEntity("", "21_scream8.snt", "ScriptScream_1", 0, false);
AddUseItemCallback("", "foolkey1", "foollevel_wood_1", "open1", true);
AddEntityCollideCallback("vase02_ghost_1", "AreafoolGhost1", "ghostscare1", true, -1);
}
void open1(string &in asItem, string &in asEntity)
void ghostscare1(string &in asParent, string &in asChild, int alState)
{
SetPropHealth(asParent, 0);
PlaySoundAtEntity("ghost_released", "03_in_a_bottle", "Player", 0, false);
GiveSanityDamage(10, true);
SetLevelDoorLocked("foollevel_wood_1", false);
PlaySoundAtEntity("", "Unlock_Door", "foollevel_wood_1", 0, false);
RemoveItem("foolkey1");
}
void OnLeave()
{
}
void OnEnter()
{
}
Help please.