mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
fix break when trying to fade ents too far away
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user