Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor Help Rope help
DanielRand47 Away
Member

Posts: 109
Threads: 16
Joined: Mar 2012
Reputation: 3
#4
RE: Rope help

I have the same question as the original author of this thread, and it involves replicating the collision with the chains at the end of the Storage map next to the room where you get the last two steam rods in the main campaign. I have followed it perfectly in the level editor: Script area, PosNode, and Invisible box areas as well. My script is as follows:

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "ScareSound", true, 1);
}

void ScareSound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "scare_male_terrified.snt", "Player", 0, false);


for(int i=1;i<=2;i++)
{
AddEntityCollideCallback("Player", "AreaChain_1"+i, "CollideAreaChain", false, 1);
AddEntityCollideCallback("invisible_box_mass_2_"+i, "AreaChain_"+i, "CollideRopeEndwithAreaChain", false, 0);
}
}

The chains aren't appearing at all. My scripting is correct, but I don't know what's wrong. I've tried locating them in the level editor, but no luck there. If anyone knows where I can locate them (not Hanging_Chain) I will be very glad.
(This post was last modified: 09-20-2012, 04:56 AM by DanielRand47.)
09-20-2012, 04:54 AM
Find


Messages In This Thread
Rope help - by Measuring - 12-30-2011, 03:19 AM
RE: Block_box - by Apjjm - 12-30-2011, 03:33 AM
RE: Rope help - by Measuring - 12-30-2011, 11:18 PM
RE: Rope help - by DanielRand47 - 09-20-2012, 04:54 AM



Users browsing this thread: 1 Guest(s)