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
Script Help destorying a padlock with a hammer
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: destorying a padlock with a hammer

void OnStart()
{
AddUseItemCallback("", "stone_hammer_1", "padlock_1", "unlock_prison_section_1", true);
}
void unlock_prison_section_1(string &in asItem, string &in asEntity)
{
SetPropHealth("padlock_1", 0.0f);
SetEntityActive("padlock_broken_1",true);
RemoveItem("stone_hammer_1");
}
Try this

(This post was last modified: 04-01-2012, 06:11 AM by flamez3.)
04-01-2012, 06:11 AM
Find


Messages In This Thread
RE: destorying a padlock with a hammer - by flamez3 - 04-01-2012, 06:11 AM



Users browsing this thread: 1 Guest(s)