Пример #1
0
        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);
            }
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
        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);
            }
        }
Пример #4
0
        private void CallServerNoItem()
        {
            Humanoid humanoid = PlayerActionController.Current.LocalPlayerMob as Humanoid;

            humanoid?.ApplyItem(null, this);
        }