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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
opening door/other
savior10946 Offline
Junior Member

Posts: 8
Threads: 7
Joined: Mar 2011
Reputation: 0
#1
opening door/other

void OnStart()
{
AddEntityCollideCallback("Player" , "room_1" , "script_1" , true , 0);
}

void script_1(string &in asParent , string &in asChild , int alState)
{
SetSwingDoorClosed("closet_1", false, false);
SetSwingDoorDisableAutoClose("closet_1", true);
}

Why wont the closet door open when i step up to it?Ive been trying to do this for 2 days and I cant get it why?
04-03-2011, 09:33 PM
Find
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#2
RE: opening door/other

You will need a push with addBodyForce or addBodyImpulse to open the door.

(This post was last modified: 04-03-2011, 09:36 PM by Pandemoneus.)
04-03-2011, 09:36 PM
Find
savior10946 Offline
Junior Member

Posts: 8
Threads: 7
Joined: Mar 2011
Reputation: 0
#3
RE: opening door/other

whats the script for the force?
04-03-2011, 09:41 PM
Find




Users browsing this thread: 2 Guest(s)