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
2 keys script
Kainzor Offline
Junior Member

Posts: 6
Threads: 2
Joined: Dec 2011
Reputation: 0
#1
2 keys script

hey im havin some problem with doin 2 keys script i know im doin somthing wrong but this is the first key script that worked fine
---------

void OnStart()
{
AddUseItemCallback("", "bedroomkey_1", "mansion_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("bedroomkey_1");
------
but where do i put the 2nd key script and how do i script it..... any info can help me
thank you for reading this
12-06-2011, 03:56 PM
Find


Messages In This Thread
2 keys script - by Kainzor - 12-06-2011, 03:56 PM
RE: 2 keys script - by flamez3 - 12-06-2011, 04:04 PM
RE: 2 keys script - by Kainzor - 12-06-2011, 04:33 PM
RE: 2 keys script - by flamez3 - 12-06-2011, 04:39 PM
RE: 2 keys script - by Kainzor - 12-06-2011, 05:04 PM
RE: 2 keys script - by Your Computer - 12-06-2011, 05:24 PM
RE: 2 keys script - by flamez3 - 12-06-2011, 05:32 PM
RE: 2 keys script - by Dobbydoo - 12-07-2011, 03:23 PM
RE: 2 keys script - by flamez3 - 12-07-2011, 03:25 PM
RE: 2 keys script - by Dobbydoo - 12-07-2011, 03:32 PM



Users browsing this thread: 1 Guest(s)