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 Item Interaction
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#3
RE: Item Interaction

void OnStart()
{
AddUseItemCallback("", "bonesaw", "woodenboards", "func", true);
}
void func(string &in asItem, string &in asEntity)
{
SetEntityActive("wooden boards (normal)", false);
SetEntityActive("wooden boards (broken one)", true);
PlaySoundAtEntity("", "break_wood.snt", "Player", 0, false);
RemoveItem("bonesaw"); //you can delete this line if you want to keep bonesaw in inventory.
}

hope it helps :p
08-13-2013, 03:32 PM
Find


Messages In This Thread
Item Interaction - by Scorch 169 - 08-13-2013, 03:49 AM
RE: Item Interaction - by PutraenusAlivius - 08-13-2013, 06:48 AM
RE: Item Interaction - by FlawlessHappiness - 08-13-2013, 09:36 PM
RE: Item Interaction - by Slanderous - 08-13-2013, 03:32 PM



Users browsing this thread: 1 Guest(s)