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

crowbar_1
And this is how I put the script area and crowbars:

[Image: LevelEditor2012-01-0515-16-48-28.png]



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

So what happens, you click on the crowbar, place it on prison_locked and it says no object to use on?


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

It says"Cannot use this item this way!"


This is my entire extra_english file:

<LANGUAGE>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Have fun!</Entry>
</CATEGORY>

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);

}

</LANGUAGE>





None of my scripts work!Really frustrating.


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

What is the maps name, same with the .hps; and did you download this or pay for it?


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

Just another night.map and HPS is Just another night .And what you mean the game?I downloaded it since it wasnt in game stores shelves.


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

(01-05-2012, 02:36 PM)kartanonperuna Wrote: Just another night.map and HPS is Just another night .And what you mean the game?I downloaded it since it wasnt in game stores shelves.
Did you pirate the game is what I meant, and rename the names to this:

just_another_night.map
just_another_night.hps


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

Yes I did.


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

What the hell? you have your scripts inside extra_english?
addaan sun msn, tai skype/steam? voin nopeesti opettaa perus scriptit...



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

Yes.What can I say,I'm a noob.Addaa vaik skypes kartanonperuna.

Ooh theyre supposed to be in Custom story settings?


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

(01-05-2012, 02:44 PM)kartanonperuna Wrote: Yes.What can I say,I'm a noob.Addaa vaik skypes kartanonperuna.

Ooh theyre supposed to be in Custom story settings?
You pirated the game?

And no, the are supposed to be in the .hps to the corresponding map file.