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
How do I open a door with a crowbar?
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#22
RE: How do I open a door with a crowbar?

(01-05-2012, 02:47 PM)kartanonperuna Wrote: Yes.Dont hate me.
You pirated the game, no wonder the scripts aren't working, that and you have them in the wrong spot.

Make a .txt file in the same folder as your maps; now rename it exactly as your map name is. Now replace .txt with .hps. After that go into it through notepad and copy everything here into it:

Quote:void OnStart()

{
AddUseItemCallback("", "crowbar_1", "prison_locked", "UnlockDoor", true);
AddEntityCollideCallback("crowbar_joint_1", "door_script_1", "crowbarfunc", true, 1);
}

void UnlockDoor(string &in asItem, string &in asEntity)
{
SetEntityActive("crowbar_joint_1", true);
//SetSwingDoorLocked("prison_locked", false, true);
//PlaySoundAtEntity("", "unlock_door", "prison_locked", 0, false);
RemoveItem("crowbar_1");
}
void crowbarfunc(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("prison_locked", 0.0f);
SetEntityActive("crowbar_joint_1", false);
SetEntityActive("crowbar_dyn_1", true);
//PlaySoundAtEntity("", "unlock_door", "prison_locked", 0, false);

}

If that doesn't work I can only assume that it's the version you downloaded from.

01-05-2012, 02:53 PM
Find


Messages In This Thread
RE: How do I open a door with a crowbar? - by flamez3 - 01-05-2012, 02:53 PM



Users browsing this thread: 7 Guest(s)