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:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Key! WHY YOU NO WORK!
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#1
Key! WHY YOU NO WORK!

Keys are the one of the most easy things I know how to script, but why the hell is it saying "Cannot Use Item This Way!" Here is my code, and I hawk-eyed it, saw nothing wrong, and someone else looked at it and ALSO saw nothing wrong! The key/door names are all correct, and the key has a subitemtext.

        AddUseItemCallback("", "key_firstfloor", "firstfloordoor", "UsedKeyOnDoor", true);

---------------------------
void UsedKeyOnDoor(string &in asParent , string &in asChild , int alState)
{
        SetLevelDoorLocked("firstfloordoor", false);
        SetLevelDoorLockedSound("firstfloordoor", "door_level_wood_locked.snt");
        RemoveItem("key_firstfloor");
}

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

(This post was last modified: 08-21-2011, 01:13 AM by JetlinerX.)
08-21-2011, 01:12 AM
Website Find


Messages In This Thread
Key! WHY YOU NO WORK! - by JetlinerX - 08-21-2011, 01:12 AM
RE: Key! WHY YOU NO WORK! - by Elven - 08-21-2011, 01:45 AM
RE: Key! WHY YOU NO WORK! - by Obliviator27 - 08-21-2011, 01:45 AM
RE: Key! WHY YOU NO WORK! - by JenniferOrange - 08-21-2011, 04:00 AM
RE: Key! WHY YOU NO WORK! - by Obliviator27 - 08-21-2011, 04:14 AM
RE: Key! WHY YOU NO WORK! - by Elven - 08-21-2011, 01:46 AM
RE: Key! WHY YOU NO WORK! - by JetlinerX - 08-21-2011, 04:17 AM
RE: Key! WHY YOU NO WORK! - by Juby - 08-21-2011, 05:37 AM



Users browsing this thread: 2 Guest(s)