mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 21:01:39 +09:00
Merge branch 'core'
This commit is contained in:
@@ -64,10 +64,8 @@ function Gui.set_dropdown_index(dropdown,_item)
|
||||
return dropdown
|
||||
end
|
||||
|
||||
local function _thread()
|
||||
local thread = Server.get_thread('camera-follow')
|
||||
if not thread then
|
||||
thread = Server.new_thread{
|
||||
Event.register(-1,function(event)
|
||||
Server.new_thread{
|
||||
name='camera-follow',
|
||||
data={cams={},cam_index=1,players={}}
|
||||
}:on_event('tick',function(self)
|
||||
@@ -92,9 +90,12 @@ local function _thread()
|
||||
table.remove(self.data.players[event.player_index],index)
|
||||
end
|
||||
end
|
||||
end):open()
|
||||
end)
|
||||
thread:open()
|
||||
end
|
||||
|
||||
local function _thread()
|
||||
local thread = Server.get_thread('camera-follow')
|
||||
if not thread then error('Camera Follow Thread Is Missing') end
|
||||
return thread
|
||||
end
|
||||
--- Adds a camera that updates every tick (or less depeading on how many are opening) it will move to follow an entity
|
||||
|
||||
Reference in New Issue
Block a user