Well, i’m having a really weird error over here. i’m trying to make a entity to use another entity ( like wire user for example ) the issue here is that it will always flag the entity as null. It doesnt matters which entity i use, since i’ve tryed doing self:use(ply,ply,etc,0). This entitys are NOT null, i tryed using the isValid and ent && ent:isValid methods to check. I even tryed changing the entity to self and try checking if it would loop or something, but i got the same error. Might be the function is not working as it should?
engineEntity = self:engineDetect() // will always output only one entity. if engineEntity and engineEntity:IsValid() then engineEntity:Use(self:GetOwner(), self:GetOwner(), USE_ON, 0) else return end // also Tryed IsValid(engineEntity) and it wont work.