I am stuck in the video Runtime item pickup. I watched previous videos already. And had succes so far. Now Im watching the Runtime pickup, and have alot of issues when trying figuring out to make it work. What I noticed was there is already a Character created in the video WITH the nolansarms and his ItemsSLOTS in lefthand righthand. How is that done? because the itemslots are automaticly created WHEN A WEAPON(item) IS ADDED TO THE CHARACTER, like in the previous videos. And there is no item in this video
in minute 1.35 NolanFirstPersonArms is already a child of First Person Objects. That only happens after you create a Item.
in minute 1.10 it had the slots. Thats also be created when creating a item, when filling visibleItem-Itemparent-CLICKAddItemSlot
in minute 0.17 " for this video make sure you seen the ItemType and the Items video" = I did !!
it is working in Thirdperson but in FPV its not animating and I get the error
Error: Unable to find the base object for item zwaard. Ensure the item specifies a base object under the First Person Perspective Item component.
UnityEngine.Debug:LogError(Object)
Opsive.UltimateCharacterController.FirstPersonController.Character.FirstPersonObjects:CheckActiveBaseObjects() (at Assets/Opsive/UltimateCharacterController/Scripts/FirstPersonController/Character/FirstPersonObjects.cs:325)
Opsive.UltimateCharacterController.FirstPersonController.Character.FirstPersonObjects:StartEquip(Item, Int32) (at Assets/Opsive/UltimateCharacterController/Scripts/FirstPersonController/Character/FirstPersonObjects.cs:295)
Opsive.UltimateCharacterController.FirstPersonController.Items.FirstPersonPerspectiveItem:StartEquip(Boolean) (at Assets/Opsive/UltimateCharacterController/Scripts/FirstPersonController/Items/FirstPersonPerspectiveItem.cs:763)
Opsive.UltimateCharacterController.Items.Item:StartEquip(Boolean) (at Assets/Opsive/UltimateCharacterController/Scripts/Items/Item.cs:368)
Opsive.UltimateCharacterController.Character.Abilities.Items.EquipUnequip:Update() (at Assets/Opsive/UltimateCharacterController/Scripts/Character/Abilities/Items/EquipUnequip.cs:533)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion:UpdateAbilities(Ability[]) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:759)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion:UpdateUltimateLocomotion() (at Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:687)
Opsive.UltimateCharacterController.Character.CharacterLocomotion:Move(Single, Single, Single) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:467)
Opsive.UltimateCharacterController.Game.KinematicCharacter:FixedMove(Boolean) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:186)
Opsive.UltimateCharacterController.Game.KinematicObjectManager:FixedUpdate() (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:671)
So after watching the old videos again and searching in DOC for add itemslot add nolandsarms I just come again the same page ADDING ITEM. so when adding A ITEM not adding a slot or assigning the nolandarms to the character.
Thing I tried
after creating a character, drag NolanFirstPersonArms in the hierarchy, put it in First Person Objects (making child of it) normaly in the videos its automatic when adding item. so I did it with my own hands
and normaly when making a item it also asks ofcource for animator controller (FirstPersonDemo) so I add that my self WITH HAND in NolanFirstPersonArms-Controller slot
for adding slot.... hmm I create a empty gameobject child in right-Hand and the others. And add the ItemSlot-script in. give it the right ID 0 for right-hand 1 for left-hand.
A simple 6 minute video give is taking me 6 hours. making the item and itempickup was easy. I tried to make the question short as possible.
in minute 1.35 NolanFirstPersonArms is already a child of First Person Objects. That only happens after you create a Item.
in minute 1.10 it had the slots. Thats also be created when creating a item, when filling visibleItem-Itemparent-CLICKAddItemSlot
in minute 0.17 " for this video make sure you seen the ItemType and the Items video" = I did !!
it is working in Thirdperson but in FPV its not animating and I get the error
Error: Unable to find the base object for item zwaard. Ensure the item specifies a base object under the First Person Perspective Item component.
UnityEngine.Debug:LogError(Object)
Opsive.UltimateCharacterController.FirstPersonController.Character.FirstPersonObjects:CheckActiveBaseObjects() (at Assets/Opsive/UltimateCharacterController/Scripts/FirstPersonController/Character/FirstPersonObjects.cs:325)
Opsive.UltimateCharacterController.FirstPersonController.Character.FirstPersonObjects:StartEquip(Item, Int32) (at Assets/Opsive/UltimateCharacterController/Scripts/FirstPersonController/Character/FirstPersonObjects.cs:295)
Opsive.UltimateCharacterController.FirstPersonController.Items.FirstPersonPerspectiveItem:StartEquip(Boolean) (at Assets/Opsive/UltimateCharacterController/Scripts/FirstPersonController/Items/FirstPersonPerspectiveItem.cs:763)
Opsive.UltimateCharacterController.Items.Item:StartEquip(Boolean) (at Assets/Opsive/UltimateCharacterController/Scripts/Items/Item.cs:368)
Opsive.UltimateCharacterController.Character.Abilities.Items.EquipUnequip:Update() (at Assets/Opsive/UltimateCharacterController/Scripts/Character/Abilities/Items/EquipUnequip.cs:533)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion:UpdateAbilities(Ability[]) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:759)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion:UpdateUltimateLocomotion() (at Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:687)
Opsive.UltimateCharacterController.Character.CharacterLocomotion:Move(Single, Single, Single) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:467)
Opsive.UltimateCharacterController.Game.KinematicCharacter:FixedMove(Boolean) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:186)
Opsive.UltimateCharacterController.Game.KinematicObjectManager:FixedUpdate() (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:671)
So after watching the old videos again and searching in DOC for add itemslot add nolandsarms I just come again the same page ADDING ITEM. so when adding A ITEM not adding a slot or assigning the nolandarms to the character.
Thing I tried
after creating a character, drag NolanFirstPersonArms in the hierarchy, put it in First Person Objects (making child of it) normaly in the videos its automatic when adding item. so I did it with my own hands
and normaly when making a item it also asks ofcource for animator controller (FirstPersonDemo) so I add that my self WITH HAND in NolanFirstPersonArms-Controller slot
for adding slot.... hmm I create a empty gameobject child in right-Hand and the others. And add the ItemSlot-script in. give it the right ID 0 for right-hand 1 for left-hand.
A simple 6 minute video give is taking me 6 hours. making the item and itempickup was easy. I tried to make the question short as possible.