- Initiateur de la discussion
AyZenSantos
Psychopathe
- Messages
- 3 361
- Score réaction
- 753
- Points
- 300
Bonsoir je cherche depuis un moment mais je bloque à un endroit comment faire pour détecter une entité ou un objet ou véhicule qui est devant un npc ??
Comment sa en regardant la position via la distance ?Slawer à dit:Tu fais un for in pairs ents.GetAll() et regarde la position via la distance
for k,v in pairs(ents.GetAll()) do if v:GetClass() == "physics_prop" then if v:GetPos():Distance(self:GetPos()) <= 200 then v:Remove() end end
end