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 Why doesn't this work?
TheBigNotch Offline
Junior Member

Posts: 3
Threads: 1
Joined: May 2012
Reputation: 0
#1
Why doesn't this work?

void OnStart()
{
    AddDebugMessage("Start: intro",false);
    SetEntityPlayerInteractCallBack("key_1","ActivateMonster", true);
    AddDebugMessage("SetEntityPlayerInteractCallBack complete.");
}

void OnEnter()
{
    AddDebugMessage("Enter: intro",false);
}

void OnLeave()
{
    AddDebugMessage("Leave: intro",false);
}

void ActivateMonster(string &in item)
{
    SetEntityActive("monster_1",true);
    AddDebugMessage("monster_1 is now active");
}
If you want to see the error you need to download the map. It's to large for me to write down. xD

(PS. I'm new to this.)
(This post was last modified: 05-12-2012, 08:10 PM by TheBigNotch.)
05-12-2012, 08:04 PM
Find


Messages In This Thread
Why doesn't this work? - by TheBigNotch - 05-12-2012, 08:04 PM
RE: Why doesn't this work? - by SilentHideButFine - 05-12-2012, 08:07 PM
RE: Why doesn't this work? - by TheBigNotch - 05-12-2012, 08:11 PM
RE: Why doesn't this work? - by Your Computer - 05-12-2012, 09:03 PM
RE: Why doesn't this work? - by TheBigNotch - 05-12-2012, 09:21 PM



Users browsing this thread: 1 Guest(s)