Merge branch 'dev' of https://github.com/The-Order-Of-The-Sacred-Framework/community_bridge into dev
This commit is contained in:
commit
c34b1cce27
2 files changed
+5
-6
No files matched your search
@@ -64,7 +64,7 @@ function Point.StartLoop()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
local distance = #(coords.xyz - point.coords.xyz)
|
local distance = #(vector3(coords.x, coords.y, coords.z) - vector3(point.coords.x, point.coords.y, point.coords.z))
|
||||||
if distance < point.distance then
|
if distance < point.distance then
|
||||||
if not point.inside then
|
if not point.inside then
|
||||||
point.inside = true
|
point.inside = true
|
||||||
@@ -131,7 +131,6 @@ function Point.UpdateCoords(id, coords)
|
|||||||
if oldGrid then
|
if oldGrid then
|
||||||
oldGrid[point.id] = nil
|
oldGrid[point.id] = nil
|
||||||
end
|
end
|
||||||
-- Add to new grid
|
|
||||||
point.coords = coords
|
point.coords = coords
|
||||||
newGrid[point.id] = point
|
newGrid[point.id] = point
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ function Utility.CreateBlip(coords, sprite, color, scale, label, shortRange, dis
|
|||||||
AddTextEntry(label, label)
|
AddTextEntry(label, label)
|
||||||
BeginTextCommandSetBlipName(label)
|
BeginTextCommandSetBlipName(label)
|
||||||
EndTextCommandSetBlipName(blip)
|
EndTextCommandSetBlipName(blip)
|
||||||
blipIDs[tostring(blip)] = true
|
blipIDs[tostring(blip)] = blip
|
||||||
return blip
|
return blip
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -150,7 +150,7 @@ function Utility.CreateEntityBlip(entity, sprite, color, scale, label, shortRang
|
|||||||
AddTextEntry(label, label)
|
AddTextEntry(label, label)
|
||||||
BeginTextCommandSetBlipName(label)
|
BeginTextCommandSetBlipName(label)
|
||||||
EndTextCommandSetBlipName(blip)
|
EndTextCommandSetBlipName(blip)
|
||||||
blipIDs[tostring(blip)] = true
|
blipIDs[tostring(blip)] = blip
|
||||||
return blip
|
return blip
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -158,8 +158,8 @@ end
|
|||||||
---@param blip number
|
---@param blip number
|
||||||
---@return boolean
|
---@return boolean
|
||||||
function Utility.RemoveBlip(blip)
|
function Utility.RemoveBlip(blip)
|
||||||
if not blipIDs[tostring(blip)] then return false end
|
if not blipIDs[tostring(blip)] then return false, print("NO BLIP BY ID") end
|
||||||
RemoveBlip(blip)
|
RemoveBlip(blipIDs[tostring(blip)])
|
||||||
blipIDs[tostring(blip)] = nil
|
blipIDs[tostring(blip)] = nil
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user