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
Little unkown spike in script
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#1
Little unkown spike in script

Right, so I'm trying to get this key to open a door and all the Scripting names are right. But I have my suspicions about the script. It doesn't crash. It loads the level up, but the callback doesn't work.

void OnStart()
{
SetEntityPlayerInteractCallback("ScareDoor_1", "ScareDoorScript", true);
AddUseItemCallback("" , "Door_1", "Key_1", "UsedKeyOnDoor", true);
}

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

"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
08-25-2011, 08:27 PM
Find


Messages In This Thread
Little unkown spike in script - by ObsidianLegion - 08-25-2011, 08:27 PM
RE: Little unkown spike in script - by GreyFox - 08-25-2011, 09:26 PM
RE: Little unkown spike in script - by palistov - 08-25-2011, 10:10 PM
RE: Little unkown spike in script - by Patacorow - 08-25-2011, 10:35 PM
RE: Little unkown spike in script - by palistov - 08-26-2011, 03:57 AM



Users browsing this thread: 1 Guest(s)