Frictional Games Forum (read-only)

Full Version: Using an item on an item?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What's the engine script for using an item, for example a knife, on another item, for example a grunts dismembered chest?
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.
It's so obvious,really. Thanks Flamez
(11-28-2011, 04:33 PM)i3670 Wrote: [ -> ]It's so obvious,really. Thanks Flamez
np