The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 Picking up a Lantern and unlocking a door
Hyperoom Offline
Junior Member

Posts: 5
Threads: 1
Joined: May 2017
Reputation: 0
#1
Picking up a Lantern and unlocking a door

I really need help scripting a sequence that unlocks a door when player picks up a lantern. I already tried this code from 2010 but I just managed to close the thread:

void PickLanternUnlockDoor(string &in EntityName, string &in Type)
{
if(Type == "OnPickup") {
SetSwingDoorLocked("door_name", false, true);
}
}
I also have steam version that help at all.
06-20-2017, 05:55 PM
Find


Messages In This Thread
Picking up a Lantern and unlocking a door - by Hyperoom - 06-20-2017, 05:55 PM



Users browsing this thread: 4 Guest(s)