// Debugging using AddDebugMessage()
void OnStart()
{
AddDebugMessage("In OnStart().", false); // The message will be displayed in the lower left corner
AddPropForce ("rope_beam02_Body_1", 500, 0, 0, "world");
PlayMusic("12_amb.ogg", true, 0.8, 1, 1, true);
AddEntityCollideCallback("Player", "area", "cake", false, 0);
}
void cake(string &in asParent, string &in asChild, int alState)
{
AddDebugMessage("In cake().", false);
SetEntityActive("suitor", true);
AddEnemyPatrolNode("suitor", "PathNode1", 0, "");
AddEnemyPatrolNode("suitor", "PathNode2", 0, "");
AddEntityCollideCallback("suitor", "ScriptArea_1", "cake1", false, 1);
}
void cake1(string &in asParent, string &in asChild, int alState)
{
AddDebugMessage("In cake1().", false);
SetEntityActive("suitor", false);
}