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)
Dobbydoo Offline
Member

Posts: 50
Threads: 6
Joined: Aug 2011
Reputation: 0
#2
RE: How to make a hammer destroy a padlock (or other enteties)

(12-20-2011, 03:29 PM)Quotentote Wrote: 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

The code you have should already work? Or is it the animation you're looking for? Then you should check out the prison_south.hps Smile

(This post was last modified: 12-20-2011, 03:38 PM by Dobbydoo.)
12-20-2011, 03:37 PM
Find


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



Users browsing this thread: 1 Guest(s)