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
Are grunts programmed to disappear once they finish a path?
Cyfiawn Offline
Junior Member

Posts: 27
Threads: 8
Joined: Jun 2012
Reputation: 0
#1
Are grunts programmed to disappear once they finish a path?

Hello,

I thought I read somewhere that once a Grunt finished it's Path (Path Nodes), if the player isn't looking at it, it should disappear? Or do I have to program it disappearing myself? I currently have this, which triggers from a player walking into an area:

PHP Code: (Select All)
void ZombieTrigger(string &in asParentstring &in asChildint alState){
AddEnemyPatrolNode("Zombie_Spawn_1""PathNodeArea_4"0"");    

AddEnemyPatrolNode("Zombie_Spawn_1""PathNodeArea_7"0"");    

AddEnemyPatrolNode("Zombie_Spawn_1""PathNodeArea_9"0"");    

AddEnemyPatrolNode("Zombie_Spawn_1""PathNodeArea_10"0"");    

AddEnemyPatrolNode("Zombie_Spawn_1""PathNodeArea_11"0"");    

AddEnemyPatrolNode("Zombie_Spawn_1""PathNodeArea_13"0"");    

AddEnemyPatrolNode("Zombie_Spawn_1""PathNodeArea_15"0"");    

AddEnemyPatrolNode("Zombie_Spawn_1""PathNodeArea_16"0"");    

SetEntityActive("Zombie_Spawn_1"true); 




Once it reaches node 16, it just starts walking aimlessly into a wall, and sometimes bugging out and spinning around in circles. I have double and triple checked the path nodes, and they are all correct, I'm just confused as to why he doesn't disappear after touching node 16?

Thanks,
Cyfiawn

EDIT 2.1: Edit 1+2 didn't work...gunna remake the nodes and script from scratch. >_>
(This post was last modified: 06-28-2012, 03:37 PM by Cyfiawn.)
06-28-2012, 01:16 PM
Find


Messages In This Thread
Are grunts programmed to disappear once they finish a path? - by Cyfiawn - 06-28-2012, 01:16 PM



Users browsing this thread: 1 Guest(s)