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 Need help with several scripts.
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Need help with several scripts.

Well, assuming you're using "wooden_boards_block" to block off the door. To break the wood by using an item on it you can use this code:

PHP Code: (Select All)
void OnStart()
{
    
AddUseItemCallback("""name_of_item""name_of_entity""name_of_callback"true);
}

void name_of_callback(string &in itemstring &in entity)
{
    
SetPropHealth(entity0);
    
RemoveItem(item);


Tutorials: From Noob to Pro
06-23-2012, 03:17 PM
Website Find


Messages In This Thread
Need help with several scripts. - by Randael - 06-22-2012, 11:28 PM
RE: Need help with several scripts. - by Randael - 06-23-2012, 03:05 PM
RE: Need help with several scripts. - by Your Computer - 06-23-2012, 03:17 PM
RE: Need help with several scripts. - by Randael - 06-23-2012, 06:09 PM
RE: Need help with several scripts. - by Randael - 06-26-2012, 09:19 PM
RE: Need help with several scripts. - by Cruzore - 06-26-2012, 09:54 PM
RE: Need help with several scripts. - by Randael - 06-26-2012, 10:04 PM
RE: Need help with several scripts. - by Cruzore - 06-26-2012, 11:04 PM
RE: Need help with several scripts. - by Randael - 06-26-2012, 11:31 PM
RE: Need help with several scripts. - by Cruzore - 06-27-2012, 12:46 PM
RE: Need help with several scripts. - by Cruzore - 06-28-2012, 12:15 AM
RE: Need help with several scripts. - by Randael - 06-28-2012, 09:43 AM



Users browsing this thread: 1 Guest(s)