Frictional Games Forum (read-only)

Full Version: Why wont this work??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[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
Look at your AddEntityCollideCallback. What's wrong with it? (It's not the placement, its the actual line of code).
Hint: you placed a coma inside the "area" instread of placing it after
moar of a spoiler than a hint #nospoilerspls #spoilertags #idontreallycare