Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Need help with some basic scripting
Author Message
SpudroSpadre Offline
Junior Member

Posts: 14
Joined: Dec 2011
Reputation: 0
Post: #1
Thumbs Up Need help with some basic scripting
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


TENSIONAL GAMES

- Currently working on a Amnesia custom story
12-21-2011 01:14 AM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,231
Joined: Jul 2011
Reputation: 215
Post: #2
RE: Need help with some basic scripting
http://www.youtube.com/watch?v=mEpIqXo7M...C8&index=8
http://www.youtube.com/watch?v=2BNFw7PR6...8&index=11

Tutorials: From Noob to Pro
(This post was last modified: 12-21-2011 01:23 AM by Your Computer.)
12-21-2011 01:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
SpudroSpadre Offline
Junior Member

Posts: 14
Joined: Dec 2011
Reputation: 0
Post: #3
RE: Need help with some basic scripting
(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 ?


TENSIONAL GAMES

- Currently working on a Amnesia custom story
12-21-2011 01:39 AM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,231
Joined: Jul 2011
Reputation: 215
Post: #4
RE: Need help with some basic scripting
(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.

Tutorials: From Noob to Pro
12-21-2011 01:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: