So I've been working on a new custom story lately, and in one part you're supposed to walk over a beam. I placed an area in the middle of the beam that is supposed to trigger a function where the beam breaks and you fall into a hole. Now there are two problems when I'm playing the custom story:
1. When I have my crosshair on the beem where the area is placed it changes to a door, as if you were looking at a level door (the area type is script).
2. The beam doesn't break..
Here's the script for the beam part:
void OnStart()
{
AddEntityCollideCallback("Player", "BeamBreakArea", "BeamBreak", true, 1);
}
void BeamBreak(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("wood_beam_1", 0);
SetEntityActive("block_box_3", true);
}
Please help me!