I have a simple function in a shared.lua file for a SENT I am working on. The print statement is never triggered - but I thought this function runs on both client and server if I have it in a shared file.
function ENT:Think()
if SERVER then
print('remove')
end
whats the filepath of your shared.lua?
If you defined another `ENT:Think` in cl_init then it'll overwrite this one. Assuming you included shared at the top of cl_init
Yeah, nothing in cl_init nor init that would override it.
Its in addons/addonname/lua/entities/entity name/shared.lua
Sorry, you need to Log In to post a reply to this thread.