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 Unlock a door.
Bonehead Offline
Member

Posts: 50
Threads: 12
Joined: Apr 2013
Reputation: 1
#1
Unlock a door.

I've been searching everywhere but cannot seem to find it. I don't mean to unlock a door with a key.. just that when I pick up an item.. the door unlocks automatically. Any way to do that?
05-21-2013, 02:19 AM
Find
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#2
RE: Unlock a door.

Sure can!

void SetSwingDoorLocked(string& asName, bool abLocked, bool abEffects);
http://wiki.frictionalgames.com/hpl2/amn...ions#doors


Also, if you want to trigger the unlock on item pickup, you can use this

void SetEntityCallbackFunc(string& asName, string& asCallback);

Calls a function when the player interacts with a certain entity.
Callback syntax: void MyFunc(string &in asEntity, string &in type)
Type depends on entity type and includes: “OnPickup”, “Break”, “OnIgnite”, etc"
http://wiki.frictionalgames.com/hpl2/amn...s#entities

(This post was last modified: 05-21-2013, 02:37 AM by Adrianis.)
05-21-2013, 02:36 AM
Find




Users browsing this thread: 1 Guest(s)