• SWEP:SetScale not working
    0 replies, posted
[CODE]function SWEP:DoImpactEffect( tr, dmgtype ) if( tr.Hit && !tr.HitSky ) then local effect = EffectData() effect:SetOrigin( tr.HitPos ) effect:SetNormal( tr.HitNormal ) effect:SetScale( .5 ) util.Effect( "explosion", effect ) end return true end[/CODE] Trying to have a small explosion appear near where the swep round lands, just an effect, no damage.
Sorry, you need to Log In to post a reply to this thread.