diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-04-22 14:03:19 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-04-22 14:03:19 -0400 |
| commit | 9a50a5880f3d263cd351f4786c222ac7f0b78517 (patch) | |
| tree | d04cbfa5f827ea196f1bed96b5f53a24314f0d48 /gamemode/server | |
| parent | d68125b0c2252d510758720a351f6aa8e6bf9278 (diff) | |
| download | gmstranded-9a50a5880f3d263cd351f4786c222ac7f0b78517.tar.gz gmstranded-9a50a5880f3d263cd351f4786c222ac7f0b78517.tar.bz2 gmstranded-9a50a5880f3d263cd351f4786c222ac7f0b78517.zip | |
Started work on createing furnace generic
Diffstat (limited to 'gamemode/server')
| -rw-r--r-- | gamemode/server/entity_functions.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gamemode/server/entity_functions.lua b/gamemode/server/entity_functions.lua index 14b8df9..8f18383 100644 --- a/gamemode/server/entity_functions.lua +++ b/gamemode/server/entity_functions.lua @@ -85,6 +85,8 @@ end GMS.FadingOutProps = {} GMS.FadingInProps = {} +print("GMS_FadingInProps initalized") + function EntityMeta:Fadeout( speed ) if ( !IsValid( self ) ) then return end local speed = speed or 1 @@ -114,6 +116,7 @@ function EntityMeta:Fadein( speed ) end hook.Add( "Think", "gms_FadePropsThink", function() + if(GMS.FadingInProps == nil) then return end for k, ent in pairs( GMS.FadingInProps ) do if ( !ent or ent == NULL ) then table.remove( GMS.FadingInProps, k ) |
