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
Yet another noob asking for help scripting
Repus32 Offline
Junior Member

Posts: 10
Threads: 3
Joined: Jan 2011
Reputation: 0
#1
Sad  Yet another noob asking for help scripting

////////////////////////////
// Run first time starting map
void OnStart()
{
SetPlayerLampOil(0);

}
////////////////////////////
// Run when entering map
void OnEnter()
{
PlayMusic("09_amb_safe", true, 0.9, 5, 0, true);

AddUseItemCallback("", "Key_1", "Door_1", "UsedKeyOnDoor", true);

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(Door_1, false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Door_1", 0.0f, false);
RemoveItem(Key_1);
}
}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}

ERROR: expected ( at 16,8!

Could someone please help me fix this?
09-01-2011, 08:17 PM
Find


Messages In This Thread
Yet another noob asking for help scripting - by Repus32 - 09-01-2011, 08:17 PM



Users browsing this thread: 1 Guest(s)