Frictional Games Forum (read-only)

Full Version: Openening a closet door
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
You have to use Propforce.
Example:
AddPropForce("nameofcloset", 1440, 1440, 1440, "world");
(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.
THIS lovely information IS ON THE flower filled WIKI, CHECK THERE!!!

GRUNT COLLIDE AREA, POOF ADD PROP BODY FORCE!