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
Expert Scripters needed
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#1
Expert Scripters needed

This is driving me nuts. I am scripting it just like before and it doesn't work. But my other script works. I have no idea how to make this damn grunt just spawn and walk his darn path. It's impossible!

But here's my Script.

Spoiler below!
void OnStart()
{
AddEntityCollideCallback("Player" , "ZP" , "MonsterFunc1" , true , 1);
}

void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Z1" , true);
AddEnemyPatrolNode("Z1", "Path1", 0, "");
AddEnemyPatrolNode("Z1", "Path2", 5, "");
AddEnemyPatrolNode("Z1", "Path3", 0, "");
AddEnemyPatrolNode("Z1", "Path4", 0, "");
}

Now let me explain. Z1 = The Grunt that is Spawning. ZP Is the Script AREA. Can you tell me what is wrong?
(This post was last modified: 07-09-2011, 03:03 AM by Angerpull.)
07-09-2011, 01:38 AM
Find


Messages In This Thread
Expert Scripters needed - by Angerpull - 07-09-2011, 01:38 AM
RE: Expert Scripters needed - by Kyle - 07-09-2011, 02:31 AM
RE: Expert Scripters needed - by Angerpull - 07-09-2011, 03:03 AM



Users browsing this thread: 1 Guest(s)