Frictional Games Forum (read-only)

Full Version: How do I open a door with a crowbar?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
crowbar_1
And this is how I put the script area and crowbars:

[Image: LevelEditor2012-01-0515-16-48-28.png]
So what happens, you click on the crowbar, place it on prison_locked and it says no object to use on?
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.
What is the maps name, same with the .hps; and did you download this or pay for it?
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.
(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
Yes I did.
What the hell? you have your scripts inside extra_english?
addaan sun msn, tai skype/steam? voin nopeesti opettaa perus scriptit...
Yes.What can I say,I'm a noob.Addaa vaik skypes kartanonperuna.

Ooh theyre supposed to be in Custom story settings?
(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.
Pages: 1 2 3 4