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
dont work Scripting a door
Spermaharen Offline
Junior Member

Posts: 8
Threads: 3
Joined: Dec 2011
Reputation: 0
#1
dont work Scripting a door

Hey im trying to scripting a door and my script looks like this !
Have i done something wrong beacuse when i use the key on the door i get a message
The Message goes like this : Cannot use this item this way!
If anyone have a clue please help me!



void OnStart()
{

AddUseItemCallback("", "Key1", "Door", "FUNCTION", true);
}

void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door", false, true);
PlaySoundAtEntity("", "unlock_door", "Door", 0, false);
RemoveItem("Key1");

}


SPERMAHAREN Cool
12-05-2011, 05:55 PM
Find


Messages In This Thread
dont work Scripting a door - by Spermaharen - 12-05-2011, 05:55 PM
RE: dont work Scripting a door - by i3670 - 12-05-2011, 06:07 PM
RE: dont work Scripting a door - by Spermaharen - 12-05-2011, 06:26 PM
RE: dont work Scripting a door - by i3670 - 12-05-2011, 06:30 PM
RE: dont work Scripting a door - by Spermaharen - 12-05-2011, 07:02 PM



Users browsing this thread: 1 Guest(s)