i googled around a bit but i only found systems to synchronize integers
how do i synchronize a locally existing string to all other players?
i dont have a second computer to test it :/
this was my idea:
beside that, how much time does it take to sync a string? afaik it doesnt matter how long the string is
how do i synchronize a locally existing string to all other players?
i dont have a second computer to test it :/
this was my idea:
JASS:
function synctest takes nothing returns nothing
local string s = ""
local gamecache cache = InitGameCache("xy")
if(GetLocalPlayer() == Player(0)) then
set s = "hi"
call StoreString(cache, "a", "a", s)
call TriggerSyncStart()
call SyncStoredString(cache, "a", "a")
call TriggerSyncReady()
endif
set s = GetStoredString(cache, "a", "a")
endfunction
beside that, how much time does it take to sync a string? afaik it doesnt matter how long the string is
Last edited: