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 activating monster on script area
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#1
activating monster on script area

so how do i activate a monster when i step on the script area i can do it when i pick up key but i tested the script area and it didnt work this is my script.
void OnStart()
{
SetEntityPlayerInteractCallback("ScriptArea_1", "ActivateMonster", true);
}
void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "Idle");
}
void OnEnter()
{
{
void OnLeave()
}
so what do i have to change to get him to activate i also changed it to a hullicination so would i have to change parts of the script for that aswell? thanks Smile
04-01-2012, 10:31 AM
Find


Messages In This Thread
activating monster on script area - by zombiehacker595 - 04-01-2012, 10:31 AM



Users browsing this thread: 1 Guest(s)