The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#1
destorying a padlock with a hammer

what would i have to do to fix this when ever i click the hammer on the padlock just says cant use item this way
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);
}
void BreakPadlock (string &in asItem, string &in asEntity)
{
SetEntityActive("padlock_broken_1",true);
SetEntityActive("padlock_1",false);
RemoveItem("stone_hammer_1");
}

04-01-2012, 06:02 AM
Find


Messages In This Thread
destorying a padlock with a hammer - by zombiehacker595 - 04-01-2012, 06:02 AM



Users browsing this thread: 1 Guest(s)