12-20-2013, 02:50 PM
so this is the script for my amnesia custom story!
void OnStart()
{
setEntityPlayerInteractCallback("key_tomb_rusty_1", "ActivateMonster"), true);
}
void OnEnter()
{
}
void OnLeave()
{
}
void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "Idle");
}
Is there something I did wrong because I keep getting an error whenever I load my custom story! saying "FATAL ERROR: Could not load script file
'custom_stories/ThereHasToBeaWayout/maps/ch01/ThereHasToBeaWayOut.hps'!
main (4,77):ERR :Expected ';'
void OnStart()
{
setEntityPlayerInteractCallback("key_tomb_rusty_1", "ActivateMonster"), true);
}
void OnEnter()
{
}
void OnLeave()
{
}
void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "Idle");
}
Is there something I did wrong because I keep getting an error whenever I load my custom story! saying "FATAL ERROR: Could not load script file
'custom_stories/ThereHasToBeaWayout/maps/ch01/ThereHasToBeaWayOut.hps'!
main (4,77):ERR :Expected ';'