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
Why does my SetSwingDoorLocked no effect?
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#1
Why does my SetSwingDoorLocked no effect?

I try to use the key on it but it says " Cannot use this item away". My code is like this:
void Onstart()
{
AddUseItemCallback("", "prisonkeylight_1", "mansion_3", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_3", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false);
RemoveItem("prisonkeylight_1");
}

It doesn't have any errors it just doesn't seem to work. Did i put something wrong Huh.

One World To Another [DEMO] coming soon.
03-19-2011, 05:56 AM
Find


Messages In This Thread
Why does my SetSwingDoorLocked no effect? - by Raymond - 03-19-2011, 05:56 AM



Users browsing this thread: 1 Guest(s)