'Why can't clients write on rpc method variables
so i have a
MoveServerRpc(direction1);
and a
[ServerRpc]
public void MoveServerRpc(Vector3 Direction2)
{
player.GetComponent<Rigidbody>().AddForce(Direction2 * 10, ForceMode.Impulse);
}
and the problem is that the
direction1
doesn't get turned into
Direction2
Why?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
