fix break when trying to fade ents too far away

This commit is contained in:
Jim Shield
2025-07-10 22:16:26 +01:00
parent e6b4c1d13c
commit eeb3f40018

View File

@@ -242,6 +242,7 @@ end
-- Experimental, add fade in for spawned entities
function fadeInEnt(ent, duration)
if not DoesEntityExist(ent) then return end
duration = duration or 500 -- in ms
local fadeSteps = 20
local stepTime = duration / fadeSteps