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.
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


Messages In This Thread
Unlock a door. - by Bonehead - 05-21-2013, 02:19 AM
RE: Unlock a door. - by Adrianis - 05-21-2013, 02:36 AM



Users browsing this thread: 1 Guest(s)