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
HPL level editor Need help now!
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: HPL level editor Need help now!

void OnStart()
{
SetEntityConnectionStateChangeCallback("lever", "unlockdoor");
AddEntityCollideCallback("Player", "script_slam", "func_slam", true, 1);
AddEntityCollideCallback("Player", "start", "monster", true, 1);
AddEntityCollideCallback("grunt", "stop", "monsterend", true, 1);
AddEntityCollideCallback("Player", "start2", "monster", true, 1);
}

The second bolded AddEntityCollideCallback should call the function "monster2"; it just calls the same function as the AddEntityCollideCallback for the first monster.

AddEntityCollideCallback("Player", "start2", "monster2", true, 1);



Hope that helped!

I rate it 3 memes.
08-24-2012, 08:45 AM
Find


Messages In This Thread
HPL level editor Need help now! - by Fanstetic - 08-24-2012, 08:36 AM
RE: HPL level editor Need help now! - by Adny - 08-24-2012, 08:45 AM



Users browsing this thread: 1 Guest(s)