functionGM:NetworkEntityCreated( ent )
---- If the entity wants to use a spawn effect-- then create a propspawn effect if the entity was-- created within the last second (this function gets called-- on every entity when joining a server)--if ( ent:GetSpawnEffect() &&ent:GetCreationTime() > ( CurTime() -1.0 ) ) thenlocal ed =EffectData()
ed:SetEntity( ent )
util.Effect( "propspawn", ed, true, true )
endend
Output: Checks if the entity has the spawnEffect flag set to true and checks if it was created in the last second, and then shows the propspawn effect.