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 Need help with some basic scripting
SpudroSpadre Offline
Junior Member

Posts: 14
Threads: 4
Joined: Dec 2011
Reputation: 0
#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
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#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
Website Find
SpudroSpadre Offline
Junior Member

Posts: 14
Threads: 4
Joined: Dec 2011
Reputation: 0
#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
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#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
Website Find




Users browsing this thread: 1 Guest(s)