Frictional Games Forum (read-only)

Full Version: Need help with some basic scripting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Let's say I have a door "mansion_1" and it's locked.
So I want it to say "Door to upstairs is locked" when a player tries to open it.





What exactly I need to do ?


Please help
Blush
(12-21-2011, 01:21 AM)Your Computer Wrote: [ -> ]http://www.youtube.com/watch?v=mEpIqXo7M...C8&index=8
http://www.youtube.com/watch?v=2BNFw7PR6...8&index=11
How can I do that with normal swing doors ?
(12-21-2011, 01:39 AM)SpudroSpadre Wrote: [ -> ]How can I do that with normal swing doors ?

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

You set a callback on the door with SetEntityPlayerInteractCallback, and in the callback you check if the door is locked with GetSwingDoorLocked. If it is, display a message with SetMessage.