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
Patrol Nodes don't work on spawned enemy
RedMser Offline
Junior Member

Posts: 40
Threads: 12
Joined: Mar 2012
Reputation: 1
#1
Patrol Nodes don't work on spawned enemy

Again here with a problem! So I am making a scripted survival map and it doesn't seem me to add patrol nodes to a n enemy that I spawn with a function. Here is the script part:

.......................        CreateEntityAtArea("servant_grunt", "servant_grunt.ent", "ScriptArea_2", false);            CreateParticleSystemAtEntity("", "ps_ghost_release.ps", "ScriptArea_2", false);            switch(GetLocalVarInt("var_room")) {                case 1:                    AddDebugMessage("Going to Room 1", false);                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_1", RandFloat(1,2), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_2", RandFloat(1,2), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_17", RandFloat(1,2), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_16", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_15", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_10", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_75", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_54", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_48", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_49", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_51", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_52", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_53", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_51", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_49", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_50", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_47", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_45", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_46", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_54", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_48", RandFloat(3,8), "");                    AddEnemyPatrolNode("servant_grunt", "PathNodeArea_75", RandFloat(3,8), "");                break;.............


The dots is continuing script that isn't relevant.

So it shows me the debug message it just doesn't go to the patrol nodes.
Someone knows what is up with that?
04-10-2012, 08:13 PM
Find


Messages In This Thread
Patrol Nodes don't work on spawned enemy - by RedMser - 04-10-2012, 08:13 PM



Users browsing this thread: 1 Guest(s)