Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Openening a closet door
oscar1007 Offline
Member

Posts: 64
Threads: 24
Joined: Oct 2011
Reputation: 0
#1
Openening a closet door

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.

Money can't buy you happiness. But I rather cry in my ferrari.

PROJECT:
http://www.moddb.com/mods/oscar1007
(This post was last modified: 07-02-2012, 07:49 PM by oscar1007.)
07-02-2012, 07:32 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#2
RE: Openening a closet door

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

Think, before you speak Google, before you post
07-02-2012, 07:41 PM
Find
oscar1007 Offline
Member

Posts: 64
Threads: 24
Joined: Oct 2011
Reputation: 0
#3
RE: Openening a closet door

(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.

Money can't buy you happiness. But I rather cry in my ferrari.

PROJECT:
http://www.moddb.com/mods/oscar1007
07-02-2012, 07:48 PM
Find
General Gregsworth Offline
Junior Member

Posts: 18
Threads: 1
Joined: Jun 2012
Reputation: 0
#4
RE: Openening a closet door

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

GRUNT COLLIDE AREA, POOF ADD PROP BODY FORCE!

Developer of Amnesia - Curse of the Ancients
(This post was last modified: 07-02-2012, 09:24 PM by Traggey.)
07-02-2012, 09:09 PM
Website Find




Users browsing this thread: 1 Guest(s)