WIXXZI

Untitled

Mar 16th, 2023
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1.  
  2. local OBJECTID = 250001
  3. local CREATUREID = 6788
  4.  
  5. local function OnCacheUse(event, go, plr)
  6.  
  7. local playerPositions = {}
  8. local mapId, posX, posY, posZ, orientation = plr:GetMapId(), plr:GetX(), plr:GetY(), plr:GetZ(), plr:GetO()
  9.  
  10. playerPositions[plr:GetGUIDLow()] = {mapId, posX, posY, posZ, orientation}
  11.  
  12. worldobject = PerformIngameSpawn(1, CREATUREID, mapId, 0, posX, posY, posZ, orientation, false, 0)
  13. worldobject:SetPhaseMask(2, true)
  14. end
  15.  
  16. RegisterGameObjectEvent(OBJECTID, 14, OnCacheUse)
Advertisement
Add Comment
Please, Sign In to add comment