Assign unique assets to players
Options
Hi,
What is the best way to distribute some assets between clients in a safe and easy way?
I don't like the solution using the customer properties.
I would like to achieve the following in a nice and convenient way:
- I have some slots on my map, if a client joins a team, he will be assigned to a slot.
- Slots are taken once only.
- If client disconnects the slot is free, if he returns, must connect to a free slot.
Whats the best way to store this?
Cheers, thanks for the answer!
What is the best way to distribute some assets between clients in a safe and easy way?
I don't like the solution using the customer properties.
I would like to achieve the following in a nice and convenient way:
- I have some slots on my map, if a client joins a team, he will be assigned to a slot.
- Slots are taken once only.
- If client disconnects the slot is free, if he returns, must connect to a free slot.
Whats the best way to store this?
Cheers, thanks for the answer!
0
Best Answer
-
Hello
Create a list for All assets centrally in single script like network manager. and when any player connect than assign any slot references with network manager. so when if another player join in room or whatever than first check how many slots are free than assign from it.
Just try it . i hope it works. i have use this for player position in single room... in which all player have different position in this room.5
Answers
-
Hello
Create a list for All assets centrally in single script like network manager. and when any player connect than assign any slot references with network manager. so when if another player join in room or whatever than first check how many slots are free than assign from it.
Just try it . i hope it works. i have use this for player position in single room... in which all player have different position in this room.5 -
thank you for the answer, I actually solved it in a similar way, like you described it, using the master client as the authority over the positions.-1