Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved How do I open a door with a crowbar?
Author Message
kartanonperuna Offline
Senior Member

Posts: 741
Joined: Oct 2011
Reputation: 8
Post: #13
RE: How do I open a door with a crowbar?
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.
(This post was last modified: 01-05-2012 02:29 PM by kartanonperuna.)
01-05-2012 02:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How do I open a door with a crowbar? - kartanonperuna - 01-05-2012 02:27 PM



User(s) browsing this thread: 1 Guest(s)