Let me try again..
So I have a device (TDExplosive), with an attachable attached to it. How can I detect if the device is activated from the attachable?
Tried it like this:
Code:
function Update(self)
if (self:GetParent()):IsActivated() then
self:Detach()
end
end
and various other ways, but always get error spam in my Lua console.