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
Whats wrong with that script?
Chaker Offline
Junior Member

Posts: 9
Threads: 2
Joined: Oct 2011
Reputation: 0
#1
Whats wrong with that script?

Hey Guys, i've got a problem, i watched tutorials about scripting etc
i copied the script in the tutorials and just renamed the item and the door.
void OnStart()

{
AddUseItemCallback("", "doorkey2", "door2","UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in esEnity)
{
SetSwingDoorLocked("door2", false, true);
PlaySoundAtEnity("", "unlock_door", "door2", 0, false);
RemoveItem("doorkey2");
}
(This post was last modified: 10-14-2011, 04:50 PM by Chaker.)
10-14-2011, 04:45 PM
Find


Messages In This Thread
Whats wrong with that script? - by Chaker - 10-14-2011, 04:45 PM
RE: Whats wrong with that script? - by Chaker - 10-14-2011, 05:04 PM
RE: Whats wrong with that script? - by Chaker - 10-14-2011, 05:11 PM
RE: Whats wrong with that script? - by Chaker - 10-14-2011, 06:37 PM
RE: Whats wrong with that script? - by GreyFox - 10-14-2011, 08:19 PM
RE: Whats wrong with that script? - by Juby - 10-14-2011, 09:05 PM
RE: Whats wrong with that script? - by Chaker - 10-14-2011, 08:51 PM
RE: Whats wrong with that script? - by flamez3 - 10-15-2011, 10:24 PM
RE: Whats wrong with that script? - by GreyFox - 10-15-2011, 11:53 PM



Users browsing this thread: 4 Guest(s)