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
Unlocking Level Doors with Item Pick-Up.
mmeowwcat Offline
Junior Member

Posts: 7
Threads: 2
Joined: Sep 2013
Reputation: 0
#1
Unlocking Level Doors with Item Pick-Up.

Hello everybody, I am having some trouble with scripting. I am very new with scripting, but I have done some work and get what functions do, and how they do it. I also understand the .lang file fairly well also. So, my problem is, I want a level door that is usually locked, to become unlocked when I pick up the lantern. I have tried
SetLevelDoorLocked(string& asName, bool abLocked);
with the bool set to both true and false, with no difference, the door is still locked. If it helps, I have lantern set as the PlayerInteractCallBack, and in that function I have the code above, and a message that does display properly. Any help on this matter would be greatly appreciated.

Regards
mmeowwcat
(This post was last modified: 09-14-2013, 05:38 PM by mmeowwcat.)
09-14-2013, 04:44 AM
Find


Messages In This Thread
Unlocking Level Doors with Item Pick-Up. - by mmeowwcat - 09-14-2013, 04:44 AM



Users browsing this thread: 1 Guest(s)