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 mess!
CapnJimmy Offline
Junior Member

Posts: 9
Threads: 2
Joined: Jan 2011
Reputation: 0
#1
Scripting mess!

Edit:

First problem solved now the key cannot be used with the door.

Here's the script:

void OnStart()
{
AddUseItemCallback("", "Key1", "Door_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Door_1", 0.0f, true);
}


Also if you know how to add momentos that'd be cool too! =D
(This post was last modified: 01-22-2011, 10:07 PM by CapnJimmy.)
01-20-2011, 08:05 PM
Find


Messages In This Thread
Scripting mess! - by CapnJimmy - 01-20-2011, 08:05 PM
RE: Scripting mess! - by jens - 01-20-2011, 08:48 PM
RE: Scripting mess! - by CapnJimmy - 01-20-2011, 08:50 PM
RE: Scripting mess! - by CapnJimmy - 01-20-2011, 11:40 PM
RE: Scripting mess! - by Vradcly - 01-21-2011, 12:07 AM
RE: Scripting mess! - by CapnJimmy - 01-21-2011, 06:22 PM
RE: Scripting mess! - by CapnJimmy - 01-22-2011, 09:48 PM
RE: Scripting mess! - by Oscar House - 01-23-2011, 12:54 AM
RE: Scripting mess! - by CapnJimmy - 01-23-2011, 01:35 AM



Users browsing this thread: 1 Guest(s)