jos_valentin
jos_valentin
NNormal
Created by jos_valentin on 4/10/2025 in #🤝ask-a-question
How to know when a player disconnects?
How can clients know when other player disconnects from the room? So I can show feedback about that
15 replies
NNormal
Created by jos_valentin on 4/8/2025 in #🤝ask-a-question
Taking the first player that triggers an action
Which would be a good approach for this case? I have some players in a table and I want to give a point for the one that press the button in the table first (when the lights turn on for example), Should I have a button owner that listen to the players trigger (ej a realtime property boolean for each player model or even an rpc call) or I can use a realtime collection in a model that has no owner to manage it? (since it is suppose that collections are prepared to avoid race conditions)
25 replies
NNormal
Created by jos_valentin on 4/3/2025 in #🤝ask-a-question
Clients and spawn points
What would be a good approach for this case: When the clients connect, I want to spawn them in specific positions that are stored in an array of transforms, so to have control of it I imagine that the first player must have the ownership of this container with the index in the respective model. The thing is that each player spawns themself also but they cant try to take an spawn point since could be a raise condition (When an spawn point is used, the index is changed) son 2 players can be spawned at the same spawn point. Would it be good to use an RPC in this case? So the owner of the spawn points send an Spawn event with the target point position for a player?
9 replies
NNormal
Created by jos_valentin on 4/3/2025 in #🤝ask-a-question
Instantiate callback for clients?
Is there a callback to subscribe when an object is instantiated at runtime? So the other clients know that object has been created
6 replies