Change Model Error for UCC/UIS Integration

jkaczmar

Member
I'm getting an error related to changing models. To give you some background, I have an FSM name tracked in the Item Definition for my armor. When it is equipped by the player, the FSM calls Change Model which is how my character changes outfit. It appears to work in that the model changes, Armor attributes for my character are updated as expected, etc. However, I'm getting the following red error. It looks as if its looking for a Prefab element like you would have for a weapon. I guess I could always slap one into the Item definition which would probably get rid of the error, but I wouldn't using it for anything based on how I've structured my game.change model error.png
 
In the integration we assume all "Character items" (a.k.a Character Equippable) must have a gameobject to spawn and equip on the character. That's why you are getting this error.
Your Military Armor shouldn't be a character equippable item. this way the CharacterInventoryBirdge won't try to spawn a gameobject for it.

So simply change the ItemCategory of the military armor to remove the dependency to the "Equippable" category and you'll be good.
I recommend differentiating a "Character Equippable" and a "Cloth Equippable" so there is a clear distincion between the item that are Character items and not.

Check out this part of the documentation it might help:
 
That was it. Thanks for the pointer to the article. I had watched the video but missed that there was separate documentation as well.
 
Back
Top