pressing P makes a request

This commit is contained in:
in0finite 2019-07-06 00:50:03 +02:00
parent dec6950a48
commit dbbc5cddb8

View file

@ -15,7 +15,10 @@ public class CharacterModelChanger : MonoBehaviour
{ {
if (Input.GetKeyDown(actionKey)) if (Input.GetKeyDown(actionKey))
{ {
if (Utilities.NetUtils.IsServer)
ChangePedestrianModel(); ChangePedestrianModel();
else if (Net.PlayerRequests.Local != null)
Net.PlayerRequests.Local.RequestPedModelChange();
} }
} }