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
Script Help Door open on it's own with script?
Chronogyros Offline
Junior Member

Posts: 43
Threads: 9
Joined: Oct 2011
Reputation: 2
#1
Door open on it's own with script?

I want to make a door open a bit on it's own when crossing through an area, but can't quite figure out the script for it. I tried:

SetMoveObjectState("mansion_5", 1);


But that doesn't seem to do anything. Any suggestions?

Emma's Story Part II 100% Complete
10-24-2011, 05:48 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Door open on it's own with script?

http://wiki.frictionalgames.com/hpl2/amn..._functions

IIRC, you have to first disable auto-close for it with the SetSwingDoorDisableAutoClose function. Then you may have to use the SetSwingDoorClosed function to open the door slightly (this may not be required). Then you use the AddPropForce function on the door.

Tutorials: From Noob to Pro
10-24-2011, 07:31 AM
Website Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#3
RE: Door open on it's own with script?

(10-24-2011, 07:31 AM)Your Computer Wrote: http://wiki.frictionalgames.com/hpl2/amn..._functions

IIRC, you have to first disable auto-close for it with the SetSwingDoorDisableAutoClose function. Then you may have to use the SetSwingDoorClosed function to open the door slightly (this may not be required). Then you use the AddPropForce function on the door.
What about just going into the editor itself and opening it from there? That is if he doesn't want it closed from the start.

10-24-2011, 11:37 AM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#4
RE: Door open on it's own with script?

@flamez3 "on it's own when crossing through an area"

BEst is to do what Your Computer said Smile

The Interrogation
Chapter 1

My tutorials
10-24-2011, 02:32 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#5
RE: Door open on it's own with script?

(10-24-2011, 02:32 PM)Elven Wrote: @flamez3 "on it's own when crossing through an area"

BEst is to do what Your Computer said Smile
Oops :S didn't read that part ;P

10-25-2011, 06:44 AM
Find




Users browsing this thread: 1 Guest(s)