Frictional Games Forum (read-only)
Openening a closet door - 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: Openening a closet door (/thread-16692.html)



Openening a closet door - oscar1007 - 07-02-2012

Hey I need some help with scripting for a custom story.
A wardrope is suppose to open up when a monster walks into an area.

Here is what i've got.



void run1(string &in asParent, string &in asChild, int alState)
{
SetMoveObjectState("cabinet_nice_2", 1);
ShowEnemyPlayerPosition("servant_grunt_1");
}

it's just a part of my complete scipt.

However the door doesn't open and yes I have tried with swing door.

How do I do this?

Thanks.


RE: Openening a closet door - Cruzore - 07-02-2012

You have to use Propforce.
Example:
AddPropForce("nameofcloset", 1440, 1440, 1440, "world");


RE: Openening a closet door - oscar1007 - 07-02-2012

(07-02-2012, 07:41 PM)FastHunteR Wrote: You have to use Propforce.
Example:
AddPropForce("nameofcloset", 1440, 1440, 1440, "world");
Thank you it worked. A little more force was needed for a better effect though.


RE: Openening a closet door - General Gregsworth - 07-02-2012

THIS lovely information IS ON THE flower filled WIKI, CHECK THERE!!!

GRUNT COLLIDE AREA, POOF ADD PROP BODY FORCE!