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
Coding problem
Ac33 Offline
Junior Member

Posts: 3
Threads: 1
Joined: May 2012
Reputation: 0
#1
Coding problem

I have an error on my .hps file. It says its on line 18 (I had to clean it up, it's the last line), but I can't see what's wrong there.

void OnStart ()
{
    AddUseItemCallback("", "key1", "mansion_1", "KeyOnDoor", true);
    
    SetEntityPlayerInteractCallback("key1", "ActivateMonster", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity) {
    SetSwingDoorLocked("mansion_1", false, true);
    PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
    RemoveItem("key1);
}

void ActivateMonster(string &in asItem) {
    SetEntityActive("morso1", true);
    AddEnemyPatrolNode("morso1", "PathNodeArea_1", 0, "Idle");
    AddEnemyPatrolNode("morso1", "PathNodeArea_2", 0, "Idle");
}
05-22-2012, 06:08 PM
Find


Messages In This Thread
Coding problem - by Ac33 - 05-22-2012, 06:08 PM
RE: Coding problem - by Obliviator27 - 05-22-2012, 06:19 PM
RE: Coding problem - by Ac33 - 05-22-2012, 06:26 PM
RE: Coding problem - by Putmalk - 05-22-2012, 06:59 PM
RE: Coding problem - by Ac33 - 05-22-2012, 07:18 PM



Users browsing this thread: 1 Guest(s)