Advertisement
Rochet2

Untitled

Jan 6th, 2015
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local MaxTeleDistance = 3
  2.  
  3. local function OnMoveInLos(event, creature, unit)
  4.     if (unit:ToPlayer() and creature:GetDistance(unit) <= MaxTeleDistance) then
  5.         unit:CastSpell(unit, 64446, true)
  6.         unit:Teleport(530, -2769.138672, 7323.202148, 44)
  7.     end
  8. end
  9.  
  10. RegisterServerEvent(ENTRY, 27, OnMoveInLos)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement