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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can anyone help me find the Script Error?
danimora2012 Offline
Junior Member

Posts: 47
Threads: 18
Joined: Apr 2012
Reputation: 0
#1
Rainbow  Can anyone help me find the Script Error?

Thank You For Reading this thread... Smile
My problem is that i can not find the error in this script... Tongue
I have a key named Key_Tomb_1 and a door named Doortodeath_1
When i use the key nothing happens...I wanted it to open the unlock the door... It is a level door by the way...NOT a swing door...Can you help me please Rolleyes ?
So here is my script----



////////////////////////////
//Run First Time Starting map
void OnStart()
{
AddUseItemCallback("", "key_Tomb_1", "Doortodeath_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("Doortodeath_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Doortodeath_1", 0.0f, false);
RemoveItem("Key_Tomb_1");
AddDebugMessage("KeyOnDoor", false);
}

////////////////////////////
// Run when entering map
void OnEnter()
{
}

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

The one who solves it gets the place on the credits...
Hope you can help me...You will probably be on youtube...PS-Pewdiepie
Please help ---Il leave the custom story attached to this post if you want to try it and see it for your self---

The key is on the top of the "stove front"


Attached Files
.rar   Ghosthunting.rar (Size: 1.02 MB / Downloads: 158)
(This post was last modified: 09-13-2012, 05:17 AM by danimora2012.)
09-13-2012, 04:51 AM
Find


Messages In This Thread
Can anyone help me find the Script Error? - by danimora2012 - 09-13-2012, 04:51 AM



Users browsing this thread: 1 Guest(s)