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 This won't work for some reason...
ElectricRed Offline
Member

Posts: 106
Threads: 13
Joined: Jun 2012
Reputation: 5
#1
This won't work for some reason...

I wrote a simple script and for some reason it's not working. I've tried everything. (Yes, I double checked the name of the area in the level editor. Tongue )

void OnStart()
{
AddEntityCollideCallback("Player", "AreaSeeMonster", "SeeMonster", true, 1);
}

void SeeMonster(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("monster_1");
    StartPlayerLookAt("monster_1", 2.0f, 2.0f, "");
    GiveSanityDamage(15, true);
    AddDebugMessage("SeeMonster", false);
}

I get no errors when loading the map or anything. It just doesn't work. The debug message doesn't show up either. Is there a reason why this could be happening?

Thanks.
07-11-2012, 07:47 PM
Find


Messages In This Thread
This won't work for some reason... - by ElectricRed - 07-11-2012, 07:47 PM
RE: This won't work for some reason... - by Adny - 07-11-2012, 08:43 PM
RE: This won't work for some reason... - by Omyn - 07-13-2012, 02:57 PM



Users browsing this thread: 3 Guest(s)