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.