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
How to make a hammer destroy a padlock (or other enteties)
Quotentote Offline
Member

Posts: 118
Threads: 23
Joined: Dec 2011
Reputation: 11
#1
How to make a hammer destroy a padlock (or other enteties)

hi there.

i got another question.
how do i scritp that hammer-xyz destroys padlock-xyz?

PHP Code: (Select All)
void OnStart()
{
AddUseItemCallback("""torturekey""tortureroom""unlock_door1"true);
}

void unlock_door1(string &in asItemstring &in asEntity)
{
    
SetPropHealth("tortureroom"0.0f);


dont be confused by the names^^ torturekey=hammer tortureroom=padlock Wink

so how do i script this, that the padlock will be destroyed when using the hammer on it?

ty
quotentote
12-20-2011, 03:29 PM
Find


Messages In This Thread
How to make a hammer destroy a padlock (or other enteties) - by Quotentote - 12-20-2011, 03:29 PM



Users browsing this thread: 1 Guest(s)