mirror of
https://github.com/imezx/Warp.git
synced 2026-03-18 00:44:16 +00:00
rewrite(phase3): add .FireExcept support
This commit is contained in:
parent
fd02dc26d5
commit
017d2e8118
1 changed files with 7 additions and 0 deletions
|
|
@ -107,6 +107,13 @@ Server.Fires = function(remoteName: string, reliable: boolean, ...: any?)
|
|||
end
|
||||
end
|
||||
|
||||
Server.FireExcept = function(remoteName: string, reliable: boolean, except: { Player }, ...: any?)
|
||||
for _, player: Player in players_ready do
|
||||
if table.find(except, player) then continue end
|
||||
Server.Fire(remoteName, reliable, player, ...)
|
||||
end
|
||||
end
|
||||
|
||||
Server.Invoke = function(remoteName: string, player: Player, timeout: number?, ...: any?): ...any?
|
||||
invokeId += 1
|
||||
local id, thread = `{invokeId}`, coroutine.running()
|
||||
|
|
|
|||
Loading…
Reference in a new issue