Garry's Mod

Garry's Mod

Nextbot Tracer
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
Sidst redigeret af IvanVladimir0435; 23. juli 2018 kl. 17:23
< >
Viser 1-2 af 2 kommentarer
∩(≡^ω^≡)∩  [udvikler] 27. maj 2018 kl. 21: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
Sidst redigeret af ∩(≡^ω^≡)∩; 27. maj 2018 kl. 21:19
IvanVladimir0435 27. maj 2018 kl. 21:27 
Oprindeligt skrevet af ∩(≡^ω^≡)∩:
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!
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50