Advertisement
serfma

Untitled

Sep 30th, 2015
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.18 KB | None | 0 0
  1. function SWEP:Think()
  2.     local o = self.Owner
  3.     if o:GetEyeTrace().Entity:IsPlayer() and o:GetPos():Distance( o:GetEyeTrace().Entity:GetPos() ) <= 50 then print( "DISTANCE CLOSE" ) end
  4. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement