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
Leveldoor lock doesn't work properly
Lukaboy8 Offline
Junior Member

Posts: 25
Threads: 10
Joined: Aug 2012
Reputation: 0
#1
Leveldoor lock doesn't work properly

Hello everybody,

I have a key called Bedroomkey and a leveldoor called Bedroomlevel. Now I have this script:

PHP Code: (Select All)
void UsedKeyOnDoor(string &in asItemstring &in asEntity)
{
 
SetSwingDoorLocked("Bedroomlevel"falsetrue);
 
PlaySoundAtEntity("""unlock_door""Bedroomlevel"0false);
 
RemoveItem("Bedroomkey");


I can here the unlock_door sound and the Bedroomkey is gone from my inventory but the door is not unlocked :/ How can I fix this?

Luke
08-05-2012, 05:05 PM
Find


Messages In This Thread
Leveldoor lock doesn't work properly - by Lukaboy8 - 08-05-2012, 05:05 PM



Users browsing this thread: 1 Guest(s)