Yue Posted April 6, 2025 Posted April 6, 2025 local foco = world:Get():GetTaggedEntities("Foco") if #foco > 0 then local foco= foco[1] foco:SetShadowmapSize(2048) Print("🎥 Foco Encontrado") else Print("⚠️ No se encontró ninguna entidad con el tag 'Foco'") end Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
Solution Josh Posted April 7, 2025 Solution Posted April 7, 2025 In your code, foco is an entity, not a light, because GetTaggedEntities() returns an Entity object. You need to cast it to a light like this: light = Light(foco) 1 Quote Let's build cool stuff and have fun.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.