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
Script Help cant get multi script to work
BirdMan1988 Offline
Junior Member

Posts: 5
Threads: 3
Joined: Aug 2012
Reputation: 0
#1
cant get multi script to work

Hello there,
i have came across a problem and my script gives me this error message when i run the map , it states i have an unexpected ending .. this is a new error for me , so any help is apresheated

this is my scripts

void OnStart()
{
SetEntityConnectionStateChangeCallback("LibaryLever", "func_shelf");
AddUseItemCallback("", "LibDeskKey_1", "LibSwitch", "UsedKeyOnDoor", true);
}


void func_shelf(string &in asEntity, int alState)
{
if (alState == 1)
{
SetMoveObjectState("ShelfRot_1",1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "shelf_move_1", 0, false);
return;
}



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

{
}

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

}

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

}
08-11-2012, 05:51 AM
Find


Messages In This Thread
cant get multi script to work - by BirdMan1988 - 08-11-2012, 05:51 AM
RE: cant get multi script to work - by The Shanus - 08-11-2012, 10:18 AM
RE: cant get multi script to work - by Lizard - 08-11-2012, 02:23 PM



Users browsing this thread: 1 Guest(s)