Frictional Games Forum (read-only)
How do i insert potions into furniture? - 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)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How do i insert potions into furniture? (/thread-18346.html)



How do i insert potions into furniture? - danimora2012 - 09-15-2012

How do i insert potions, oil ,keys and suff into furniture like tables and containers?


RE: How do i insert potions into furniture? - EXAWOLT - 09-15-2012

some entities can be checked as "breakeable", and for example a vase, in the entity tab, you can set "contained item" and choose what u want.
then for exe. a table, u need a script:
SetEntityCallbackFunc(string& asName, string& asCallback);
Calls a function when the player interacts with a certain entity.
Callback syntax: void MyFunc(string &in asEntity, string &in type)
Type depends on entity type and includes: “OnPickup”, “Break”, “OnIgnite”, etc
then in the void youll have:
SetEntityActive("?", true);


RE: How do i insert potions into furniture? - FlawlessHappiness - 09-15-2012

Otherwise you would just zoom into the drawers and place it inside