mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-19 14: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
|
-- Experimental, add fade in for spawned entities
|
||||||
function fadeInEnt(ent, duration)
|
function fadeInEnt(ent, duration)
|
||||||
|
if not DoesEntityExist(ent) then return end
|
||||||
duration = duration or 500 -- in ms
|
duration = duration or 500 -- in ms
|
||||||
local fadeSteps = 20
|
local fadeSteps = 20
|
||||||
local stepTime = duration / fadeSteps
|
local stepTime = duration / fadeSteps
|
||||||
|
|||||||
Reference in New Issue
Block a user