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
!!!SCRIPTING HELP!!!
DJ1447 Offline
Junior Member

Posts: 3
Threads: 1
Joined: Jan 2012
Reputation: 0
#1
!!!SCRIPTING HELP!!!

I have been trying to get a key to unlock a door but its not working here is my extra lang:

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_key1">Item Description</Entry>
<Entry Name="ItemName_key1">Item Name</Entry>
</CATEGORY>

that is all i have in it and here is my map:

void OnStart()
{

AddUseItemCallback("", "key1", "Door1", "UsedKeyOnDoor", true);

}

void UsedKeyOnDoor(string &in item, string &in door)

{
SetSwingDoorLocked(door1, false, true);
PlaySoundAtEntity("", "unlock_door", door1, 0, false);
RemoveItem(key1);

}
}

and that is all thats in that map... PLZ HELP!
01-19-2012, 02:08 AM
Find


Messages In This Thread
!!!SCRIPTING HELP!!! - by DJ1447 - 01-19-2012, 02:08 AM
RE: !!!SCRIPTING HELP!!! - by Quotentote - 01-19-2012, 02:10 AM
RE: !!!SCRIPTING HELP!!! - by DJ1447 - 01-19-2012, 02:50 AM
RE: !!!SCRIPTING HELP!!! - by Statyk - 01-19-2012, 03:22 AM
RE: !!!SCRIPTING HELP!!! - by flamez3 - 01-19-2012, 03:41 AM
RE: !!!SCRIPTING HELP!!! - by DJ1447 - 01-19-2012, 11:44 PM
RE: !!!SCRIPTING HELP!!! - by Statyk - 01-20-2012, 12:16 AM



Users browsing this thread: 1 Guest(s)