Garry's Mod

Garry's Mod

Nextbot Tracer
IvanVladimir0435 2018 年 5 月 18 日 下午 6:44
Code stuff!
Ok I recently downloaded this addon and I couldn't spawn her, so I think she's broken but I would like to know how you made her attack nextbots, I'm currently working on some of them and I would like to know how you did it
最後修改者:IvanVladimir0435; 2018 年 7 月 23 日 下午 5:23
< >
目前顯示第 1-2 則留言,共 2
∩(≡^ω^≡)∩  [開發人員] 2018 年 5 月 27 日 下午 9:19 
The basic idea of recognizing nextbots is to check
ENT.Type == "nextbot"

You can write something like:
for k, v in pairs(ents.FindInSphere(self:GetPos(), 400)) do if v:IsNPC() or v.Type == "nextbot" then //Stuff for detected NPCs and Nextbots end end
最後修改者:∩(≡^ω^≡)∩; 2018 年 5 月 27 日 下午 9:19
IvanVladimir0435 2018 年 5 月 27 日 下午 9:27 
The basic idea of recognizing nextbots is to check
ENT.Type == "nextbot"

You can write something like:
for k, v in pairs(ents.FindInSphere(self:GetPos(), 400)) do if v:IsNPC() or v.Type == "nextbot" then //Stuff for detected NPCs and Nextbots end end
THANK YOU!
< >
目前顯示第 1-2 則留言,共 2
每頁顯示: 1530 50