Garry's Mod

Garry's Mod

NPC Spawn Platforms v3
Bliketod 20 Jul, 2018 @ 5:21am
NPCs dont move after spawning
when platform start spawning NPC they jast stand and not move,can you help me?
< >
Showing 1-9 of 9 comments
Lexi  [developer] 21 Jul, 2018 @ 11:33am 
Do you have AI disabled in the ctrl menu settings?
Bliketod 22 Jul, 2018 @ 2:26am 
Ai has been enabled and ignore players has been enabled too.NPCs stood and did not fight until the moment I placed the enemy. that's the problem so long as the NPC does not see the enemy they will just stand, could you do so after the appearance of the NPC began to patrol the terrain, and not stand in anticipation
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1447589601
Lexi  [developer] 22 Jul, 2018 @ 3:21am 
I'll see what I can do
Lexi  [developer] 22 Jul, 2018 @ 4:26am 
OK, so it looks like the only NPCs that support the StartPatrolling input are combine soldiers and citizens/rebels, while some NPCs (like hunters) will start patrolling automatically and there's no way to make them stop. (All other patroling activities are baked into maps, so I can't do much about that)
I've got a todo-list item about per-npc settings, so I'll add this to that.
Until I do that, you can use this command to make everything that can patrol start patroling:
lua_run for _,e in pairs(ents.GetAll())do if e:IsNPC()then e:Fire'StartPatrolling'end end

Bliketod 22 Jul, 2018 @ 5:10am 
ok, thank you
Bliketod 22 Jul, 2018 @ 5:50am 
You say that fast crabs and hunters start to patrol automatically without console commands, but what if you try to take this script and put it into another NPC, for example, a zombie. If it turns out that zombies, too, after the appearance of budt to walk on the map. Of course, if it possible.
Lexi  [developer] 23 Jul, 2018 @ 12:26am 
I already tried zombies, they just stand still. Same with metrocops & named NPCs like alyx or barney.
Sanders 18 Apr, 2019 @ 5:50pm 
is there a way to have the "detect" the player farther then the defult? as thats no fun
Lexi  [developer] 21 Apr, 2019 @ 10:29am 
There is, and I've made a note to remember this feature request - but I'm not actively working on this mod at the moment so I don't know when I'll get around to it.
< >
Showing 1-9 of 9 comments
Per page: 1530 50