I have a question. How can I send data periodically from the server to all players in a match?
What I want to do is, every 5 seconds, create an object at a random position in the screen, but it needs to be the same position for all players. So all players have to see that object in the same position.
I understand how this works when a player is the one who creates the object (like a bullet for example). But in my case no player should be creating these objects, they should be created by the scene itself (the server I asume), because these objects belong to the scene, not to any player.
Thank you in advance!
Best Answer
J
Javier Garrigues
said
almost 6 years ago
Hi, I just wanted to let you guys know that I figured it out. I use RTSession.setInterval in my RTScript. Thanks! :)
1 Comment
J
Javier Garrigues
said
almost 6 years ago
Answer
Hi, I just wanted to let you guys know that I figured it out. I use RTSession.setInterval in my RTScript. Thanks! :)
Javier Garrigues
Hello guys,
I have a question. How can I send data periodically from the server to all players in a match?
What I want to do is, every 5 seconds, create an object at a random position in the screen, but it needs to be the same position for all players. So all players have to see that object in the same position.
I understand how this works when a player is the one who creates the object (like a bullet for example). But in my case no player should be creating these objects, they should be created by the scene itself (the server I asume), because these objects belong to the scene, not to any player.
Thank you in advance!
I just wanted to let you guys know that I figured it out. I use RTSession.setInterval in my RTScript.
Thanks! :)
Javier Garrigues
I just wanted to let you guys know that I figured it out. I use RTSession.setInterval in my RTScript.
Thanks! :)
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics