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
Question About Activating a monster when you walk in a Area
meneadeszz Offline
Junior Member

Posts: 20
Threads: 9
Joined: Apr 2012
Reputation: 0
#1
Question About Activating a monster when you walk in a Area

Ok hellow .

Im trying to make a monster activate when you walk in area..
I got a brute setup in a cabinet.
this is the little scipt it made

void OnStart()
{

SetEnemyDisabled("brute1", true);

//when the player enters the area the brute gets activated
AddEntityCollideCallback("Player", "brute1activate", "brute1activate", true, 1);
}


void brute1activate(string &in asParent, string &in asChild, int alState)
{ i dont know what the false and true mean the wiki doesnt explain
SetNPCAwake("brute1", false, true);
}


what im a missing.?
i would alos want to add a timer so when you enter the area 1 second later the brute activates

04-18-2012, 07:00 PM
Find


Messages In This Thread
Question About Activating a monster when you walk in a Area - by meneadeszz - 04-18-2012, 07:00 PM



Users browsing this thread: 1 Guest(s)