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 Monster Area doesn't work
Bl4ckSheep Offline
Junior Member

Posts: 2
Threads: 1
Joined: Nov 2012
Reputation: 0
#1
Monster Area doesn't work

The monster is supposed to spawn when the player walks into the area, but when I walk through it, nothing happens...
I'm not really sure where the problem comes from, is there an error in the script ?

Thank you.


void OnEnter()
{
AddEntityCollideCallback("Player", "CorridorArea", "monster3", true, 1);
}


void monster3(string &in asEntity, string &in type)
{
SetEntityActive("CorridorMonster1", true);
ShowEnemyPlayerPosition("CorridorMonster1");
}
11-26-2012, 05:29 PM
Find


Messages In This Thread
Monster Area doesn't work - by Bl4ckSheep - 11-26-2012, 05:29 PM
RE: Monster Area doesn't work - by Bl4ckSheep - 11-26-2012, 05:54 PM



Users browsing this thread: 1 Guest(s)