-
Notifications
You must be signed in to change notification settings - Fork 75
Description
hello, so i have a couple of questions that i need help with so if anyone can please help me out it whould be greatly appretiated.
question.1) this is the most improtant one, so in my game onnetworkspawn there are some gameobjects that i set active and some i set inactive via code but the problem is those gameobject when i run the rpc to turn them off it is not syncronized tp the other players and yes they all are attached to the main player object which has a networkobject component i tried to use server rpc and client rpc and even a network variable onvaluechanged, i also tried turing off the players sprite renderer the same way but its also not being syncronized notting works so if anyone knows some thing i dont please help.
question.2) my other question in my game after all the nessesary ammount of players are in a lobby the game automatically starts, so to put it simply i dont want to spawn the players imediately i want to wait sometime before the playes are spawned and make sure the time is all the same for all the players, basically if you have played call of deuty mobile the same way the multiplayer match begins in such a way that there if a player joins late the time will be the same and he dosent have to wait the ten second count down there is aster the players are spawned and the main game is about to begin just like codm.
question.3) i this is actually just another part of my first question some of the objects i turn off i add them to a lists and loop through them to turn them only one of them on after the player clicks on a button but event when i add them to the list it is also not being syncronized i tried using an rpc that also dosent work.
question.4) i also want to syncronize changing player sprites which a player can change when he dies and is about to be respawned he can choose a loadout and change sprites which the value of his/her current selected sprite is loaded from cloud save.
please if anyone can help me out with even one of these questions i whould greately appritiate it.