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
Using an item on an item?
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#1
Using an item on an item?

What's the engine script for using an item, for example a knife, on another item, for example a grunts dismembered chest?
(This post was last modified: 11-28-2011, 01:56 PM by i3670.)
11-28-2011, 01:55 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Using an item on an item?

void OnStart()
{
AddUseItemCallback("", "knife", "grunt_chest", "interact1", true);
}

void interact1(string &in asItem, string &in asEntity)
{
stuff you want to happen
}

If you need me to explain it just comment.

(This post was last modified: 11-28-2011, 03:28 PM by flamez3.)
11-28-2011, 03:27 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#3
RE: Using an item on an item?

It's so obvious,really. Thanks Flamez
11-28-2011, 04:33 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#4
RE: Using an item on an item?

(11-28-2011, 04:33 PM)i3670 Wrote: It's so obvious,really. Thanks Flamez
np

11-29-2011, 03:21 AM
Find




Users browsing this thread: 1 Guest(s)