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