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
Can anyone spot the problem?
QysteiN Offline
Junior Member

Posts: 45
Threads: 6
Joined: Nov 2011
Reputation: 0
#1
Can anyone spot the problem?

The first key is working but the second aint.

Can anyone spot what ive done wrong?



void OnStart()

{
AddUseItemCallback("", "awesomekey_1", "castle_1", "KeyOnDoor", true);

}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);
RemoveItem("awesomekey_1");

}


AddUseItemCallback("", "Awesomekey_2", "Level_1", "KeyOnDoor", true);

}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Level_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);
RemoveItem("Awesomekey_2");

}

I make YouTube videos and I'm currently working on a Amnesia custom story.

02-15-2012, 11:28 AM
Website Find


Messages In This Thread
Can anyone spot the problem? - by QysteiN - 02-15-2012, 11:28 AM
RE: Can anyone spot the problem? - by palistov - 02-15-2012, 11:32 AM
RE: Can anyone spot the problem? - by QysteiN - 02-15-2012, 11:42 AM
RE: Can anyone spot the problem? - by jens - 02-15-2012, 11:49 AM
RE: Can anyone spot the problem? - by QysteiN - 02-15-2012, 12:17 PM
RE: Can anyone spot the problem? - by flamez3 - 02-15-2012, 12:30 PM
RE: Can anyone spot the problem? - by Dexakita - 02-15-2012, 12:43 PM
RE: Can anyone spot the problem? - by QysteiN - 02-15-2012, 12:50 PM
RE: Can anyone spot the problem? - by jens - 02-15-2012, 12:56 PM
RE: Can anyone spot the problem? - by Dexakita - 02-15-2012, 01:18 PM



Users browsing this thread: 1 Guest(s)