#After collision everything works fine, but if I want to get/set any of the collider's properties
12 messages · Page 1 of 1 (latest)
After passing a collision.gameObject to the function, it started working. Seems like passing only collision doesn't work for some reason?
you shouldnt be using NetworkServer.Spawn inside a [ClientRPC], as the name implies NetworkServer is for server side use only
it looks like that effect should just be a normal non-networked (no network identity) prefab, since you destroy it quickly
also looks like you are doing damage in a [ClientRPC], health should be controlled by the server and sync'd
so I should do Instantiate + Spawn in command?
you shouldnt need to use a [Command], where you are calling the function currently is serverside so you can do the spawn there (or do what i suggested and have it be a non-networked prefab)