public override void ApplyItemClient(Item.Item item) { Humanoid humanoid = PlayerActionController.Current.LocalPlayerMob as Humanoid; if (humanoid != null) { Debug.Log("Door was pushed"); humanoid.ApplyItem(item, this); } }
public override void ApplyItemClient(Item item) { Humanoid local = PlayerActionController.Current.LocalPlayerMob as Humanoid; if (item == null) { if (ItemHolder == null) { local.PickItem(this, PlayerActionController.Current.ActiveHand); } } else { local.ApplyItem(this, item); } }
public override void ApplyItemClient(Item item) { Humanoid playerHumanoid = PlayerActionController.Current.LocalPlayerMob as Humanoid; if (playerHumanoid == null) { return; } if (item == null) { playerHumanoid.PickItem(this, PlayerActionController.Current.ActiveHand); } else { //.ApplyItemClient(item); playerHumanoid.ApplyItem(item, this); } }
private void CallServerNoItem() { Humanoid humanoid = PlayerActionController.Current.LocalPlayerMob as Humanoid; humanoid?.ApplyItem(null, this); }