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 errors.
Redneb27 Offline
Junior Member

Posts: 10
Threads: 4
Joined: Jul 2012
Reputation: 0
#1
Scripting errors.

I just started trying to create my own custom story, and I dont know hardly anything about scripting. All Im trying to do is make a key unlock a door right now. I get an unexpected token { error and a couple other errors. My scripting is probably full of errors, so can someone take a look at it and help me?


////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "key_1", "door_1", "KeyOnDoor", true);
}

void (string &in asItem, string &in asEntity);
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem("key_1");
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
07-17-2012, 07:34 PM
Find


Messages In This Thread
Scripting errors. - by Redneb27 - 07-17-2012, 07:34 PM
RE: Scripting errors. - by Traggey - 07-17-2012, 07:39 PM
RE: Scripting errors. - by JMFStorm - 07-17-2012, 07:41 PM
RE: Scripting errors. - by Redneb27 - 07-17-2012, 08:16 PM
RE: Scripting errors. - by Kazakarumariou - 07-17-2012, 10:00 PM
RE: Scripting errors. - by Your Computer - 07-18-2012, 12:24 AM
RE: Scripting errors. - by Kazakarumariou - 07-18-2012, 12:41 AM
RE: Scripting errors. - by Redneb27 - 07-19-2012, 04:28 AM



Users browsing this thread: 2 Guest(s)