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
Monster Triggering problem
Niko Offline
Junior Member

Posts: 4
Threads: 1
Joined: May 2012
Reputation: 0
#1
Monster Triggering problem

EDIT: Everything works now! thx for help!

-----------








There may be same kind of threads somewhere, so if there is im sry but this is DAMN annoying. Angry

So, i have tried many monster triggering techniques. Even watched tutorials on YouTube, following other custom story triggering technique. but some reason my monster wont appear! Am i doing something wrong or wth?

Problem --> The monster wont go active and nothing happens, like there wouldnt be script at all.

here is my scripting: (with playercollide script in level editor and monster isnt active)


void OnStart()
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
ShowEnemyPlayerPosition("servant_grunt_1");
}




could anyone help me how to get it working? I just cant get it work even with frictionalgames wiki. I have tried it.


Attached Files
.jpg   Untitled-2.jpg (Size: 266.23 KB / Downloads: 137)
(This post was last modified: 05-27-2012, 03:27 PM by Niko.)
05-25-2012, 01:47 PM
Find


Messages In This Thread
Monster Triggering problem - by Niko - 05-25-2012, 01:47 PM
RE: Monster Triggering problem - by Datguy5 - 05-25-2012, 01:52 PM
RE: Monster Triggering problem - by Putmalk - 05-25-2012, 05:16 PM
RE: Monster Triggering problem - by Niko - 05-25-2012, 05:23 PM
RE: Monster Triggering problem - by Putmalk - 05-25-2012, 05:50 PM
RE: Monster Triggering problem - by Niko - 05-25-2012, 06:09 PM
RE: Monster Triggering problem - by Adny - 05-25-2012, 07:07 PM
RE: Monster Triggering problem - by Aresak - 05-25-2012, 09:02 PM
RE: Monster Triggering problem - by Niko - 05-27-2012, 03:28 PM



Users browsing this thread: 1 Guest(s)