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
Enemy Trigger problems
omiwrench8k Offline
Junior Member

Posts: 6
Threads: 2
Joined: Nov 2011
Reputation: 0
#1
Enemy Trigger problems

So what I'm trying to do is to make an enemy active and patrolling when I pick up a key, pretty standard stuff. I can't get it to work though, so if any of you could tell me what I'm doing you'll have my eternal gratitude.
void OnStart( )
{
//Item & Interaction Callbacks
SetEntityCallbackFunc("key_tomb_1", "StartGrunt_1");

void StartGrunt_1(string &in asEntity)
{
SetEntityActive("servant_grunt_1", true);
SetSwingDoorLocked("mansion_2", true, false);
SetEntityActive("BoxLight_2", false);
SetMessage("Message", "RunMonster", 6);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
Then some path nodes, etc...
(This post was last modified: 01-01-2012, 10:04 PM by omiwrench8k.)
01-01-2012, 07:20 PM
Find


Messages In This Thread
Enemy Trigger problems - by omiwrench8k - 01-01-2012, 07:20 PM
RE: Enemy Trigger problems - by Statyk - 01-01-2012, 07:46 PM
RE: Enemy Trigger problems - by omiwrench8k - 01-01-2012, 08:12 PM
RE: Enemy Trigger problems - by Your Computer - 01-01-2012, 08:23 PM
RE: Enemy Trigger problems - by omiwrench8k - 01-01-2012, 09:16 PM
RE: Enemy Trigger problems - by Your Computer - 01-01-2012, 09:34 PM
RE: Enemy Trigger problems - by omiwrench8k - 01-01-2012, 10:03 PM



Users browsing this thread: 1 Guest(s)