Frictional Games Forum (read-only)
How do I open a door with a crowbar? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How do I open a door with a crowbar? (/thread-12338.html)

Pages: 1 2 3 4


RE: How do I open a door with a crowbar? - kartanonperuna - 01-05-2012

Yes.Dont hate me.


RE: How do I open a door with a crowbar? - flamez3 - 01-05-2012

(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.


RE: How do I open a door with a crowbar? - kartanonperuna - 01-05-2012

Ok I have bought the game.So I'm going to try it now.
Still doesnt work..


RE: How do I open a door with a crowbar? - kartanonperuna - 01-06-2012

Help?


RE: How do I open a door with a crowbar? - flamez3 - 01-06-2012

(01-06-2012, 12:50 AM)kartanonperuna Wrote: Help?
Did you do as I told you in the above post? Exactly?


RE: How do I open a door with a crowbar? - kartanonperuna - 01-06-2012

Yup.Dont know what can be the problem.


RE: How do I open a door with a crowbar? - Statyk - 01-07-2012

Fixed it for ya ;]


RE: How do I open a door with a crowbar? - kartanonperuna - 01-07-2012

Yes you indeed did.Hes the one who saw the miserable fails i have done.I cant thank you enough.


RE: How do I open a door with a crowbar? - BlueFury - 01-07-2012

I'm not hating on you but I hope for you that you bought the game, this forum isn't for the people who pirated the game.


RE: How do I open a door with a crowbar? - kartanonperuna - 01-07-2012

Yes I did buy it.Didnt you read the earlier posts?