Frictional Games Forum (read-only)

Full Version: Door open on it's own with script?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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.
(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.
@flamez3 "on it's own when crossing through an area"

BEst is to do what Your Computer said Smile
(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