i3670
Posting Freak
Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation:
36
|
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 |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
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 |
|
i3670
Posting Freak
Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation:
36
|
RE: Using an item on an item?
It's so obvious,really. Thanks Flamez
|
|
11-28-2011, 04:33 PM |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
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 |
|