Advertisement
NSKuber

Exercise 7 Bonus 1

Apr 1st, 2021
1,013
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. worldGlobals.CreateRPC("client", "reliable", "RequestImportantVariable",
  2.     function()
  3.         -- I use worldGlobals.worldInfo here, because worldInfo variable is not bound in a replicated call
  4.         if worldGlobals.worldInfo:NetIsHost() then
  5.             worldGlobals.SetImportantVariable(importantVariable)
  6.         end
  7.     end
  8. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement