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.
Randael Offline
Junior Member

Posts: 7
Threads: 1
Joined: Jun 2012
Reputation: 0
#5
RE: Need help with several scripts.

(06-23-2012, 03:17 PM)Your Computer Wrote: 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);

so i put an item reaction to the object , which sets the health of it to 0, and destroys the object or crowbar? adduseitemcallback... thats just what i needed^^ gonna try it out, much thx Big Grin

It works perfectly... thanks =) now i just hope in still get help for the other things
(This post was last modified: 06-23-2012, 08:16 PM by Randael.)
06-23-2012, 06:09 PM
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 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)