Frictional Games Forum (read-only)
Using an item on an item? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+--- Thread: Using an item on an item? (/thread-11560.html)



Using an item on an item? - i3670 - 11-28-2011

What's the engine script for using an item, for example a knife, on another item, for example a grunts dismembered chest?



RE: Using an item on an item? - flamez3 - 11-28-2011

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.


RE: Using an item on an item? - i3670 - 11-28-2011

It's so obvious,really. Thanks Flamez



RE: Using an item on an item? - flamez3 - 11-29-2011

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