Advertisement
CapsAdmin

Untitled

Apr 25th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. hook.Add("CreateMove", "follow", function(cmd)
  2.     local ply = LocalPlayer()
  3.     local target = player.GetByUniqueID(--[[KpK.Y0uM]] "3231181953") or NULL
  4.        
  5.     if target:IsValid() then           
  6.         local apos = ply:EyePos()
  7.         local bpos = target:EyePos()
  8.            
  9.         local offset = bpos - apos
  10.         local ang = offset:Angle()
  11.         ang.p = math.NormalizeAngle(ang.p)
  12.        
  13.         if offset:Length() > 100 then
  14.             cmd:SetForwardMove(1000)   
  15.         end
  16.            
  17.         cmd:SetViewAngles(ang)
  18.     end
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement