Frictional Games Forum (read-only)
[SCRIPT] Why wont this work?? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Why wont this work?? (/thread-30112.html)



Why wont this work?? - 4WalledKid - 06-10-2015

[Image: 59ea8b0ea606d5c7808ac3aea6f8b9e7.png]

////////////////////////////
// Run first time starting map
void OnStart()
{
//Add the Lantern and 10 Tinderboxes when in Debug mode, always good to have light!

AddEntityCollideCallback("Player", "area," "lightsOff", true, 1);

}

void lightsOff(string &in asParent, string &in asChild, int alState)
{
//AddPropForce("lamp_1", -30, 0, 0, "world");
//AddDebugMessage("YES", true);
//GivePlayerDamage(0.5, "Claws", true, false);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

LOL nv


RE: Why wont this work?? - Romulator - 06-10-2015

Look at your AddEntityCollideCallback. What's wrong with it? (It's not the placement, its the actual line of code).


RE: Why wont this work?? - Darkfire - 06-10-2015

Hint: you placed a coma inside the "area" instread of placing it after


RE: Why wont this work?? - Mudbill - 06-10-2015

moar of a spoiler than a hint #nospoilerspls #spoilertags #idontreallycare