• How to use env_laser in swep.
    0 replies, posted
Hay i wanna make a Laser Gun but i don't know how to make a laser entity. HELP HELP if ( !CLIENT ) then //Create the sparks at end of laser local sparks = ents.Create( "env_spark" ); sparks:SetPos( trace.HitPos ), math.random( -150, 150 ), math.random( -150, 200 ) ) ) sparks:SetKeyValue( "MaxDelay", "0" ) sparks:SetKeyValue( "Magnitude", "1" ) sparks:SetKeyValue( "TrailLength", "3" ) sparks:SetKeyValue( "spawnflags", "0" ) sparks:Spawn() sparks:Fire( "Kill", nil, PrimaryDelay ) end
Sorry, you need to Log In to post a reply to this thread.