(07-04-2012, 01:46 PM)Your Computer Wrote: Why haven't you thought about checking if alState is equal to -1, and if so, close and lock the door? If you're looking for the door to open without the player interacting with the hatch, you're going to need to apply force or an impulse to the entity after unlocking, disabling autoclose and opening.
Study: http://wiki.frictionalgames.com/hpl2/amn..._functions
Yeah Thanks for the advice.
But to be honest I have no idea what you mean with all that
I only starded for about a week and a half now.
And I have the hatch like this if it would help anything.
http://i47.tinypic.com/fmje5e.png
I have been studying the engine scripts, And I have been looking at old threads but I just can't seem to figure it out. If you could give an example code of what you mean with what you say it could help me alot.and by the way i have a rope attached to the hatch I don't think that would change any of the code but still I thought it would be better if I would include it .
The thing i want is like when you pull a lever the hatch goes open.