CatttDaddy
Member
Secondary Item Ability Wont Activate
I am attempting to have a character have an Item called Fists have 2 Item Abilities. I would like to use the Mouse 1 button to punch and Mouse 2 for kick. The punch seems to work fine but my character will not do the kick. I disabled the "Aim" Item Ability and unchecked it.
I have created a Fists Item. This fists Item is the same as the Body Item in the tutorial. I was examining the Nolan character in the demo.
I see that every Item Game Object has at least 4 scripts on the Item an “Item” script, ”Third Person Perspective Item” script, “Third Person Melee Weapon Properties” script and a “Melee Weapon” script.
The “Item” script has the “Slot ID” of the Item in the inventory and the “Animator Movement Set ID” to reference the items animation in the animator.
The “Third Person Perspective Item” script just designates the Game Object used the represent the Item and the bone it is attached to.
Each additional ability for an item has both a “Third Person Melee Weapon Properties” script and a “Melee Weapon” script. The Action IDs in each must match and correlate to the “Ultimate Character Locomotion” script’s “Item Ability” –Action ID added to perform the action. I created an additional “Use” Item Ability with the same Slot ID referenced in the “Item” script on my Item and Action ID referenced in both the “Third Person Melee Weapon Properties” script and a “Melee Weapon” scripts. I think I have the concept figured out but it is not working.
Here are images to show settings
Slot ID 0, Action ID 0
Ultimate Character Locomotion Item Ability Use
Slot 0, Action ID 0
Slot Item 0, Action ID 1
Ultimate Character Locomotion Item Ability Use
Slot 0, Action ID 1
I am attempting to have a character have an Item called Fists have 2 Item Abilities. I would like to use the Mouse 1 button to punch and Mouse 2 for kick. The punch seems to work fine but my character will not do the kick. I disabled the "Aim" Item Ability and unchecked it.
I have created a Fists Item. This fists Item is the same as the Body Item in the tutorial. I was examining the Nolan character in the demo.
I see that every Item Game Object has at least 4 scripts on the Item an “Item” script, ”Third Person Perspective Item” script, “Third Person Melee Weapon Properties” script and a “Melee Weapon” script.
The “Item” script has the “Slot ID” of the Item in the inventory and the “Animator Movement Set ID” to reference the items animation in the animator.
The “Third Person Perspective Item” script just designates the Game Object used the represent the Item and the bone it is attached to.
Each additional ability for an item has both a “Third Person Melee Weapon Properties” script and a “Melee Weapon” script. The Action IDs in each must match and correlate to the “Ultimate Character Locomotion” script’s “Item Ability” –Action ID added to perform the action. I created an additional “Use” Item Ability with the same Slot ID referenced in the “Item” script on my Item and Action ID referenced in both the “Third Person Melee Weapon Properties” script and a “Melee Weapon” scripts. I think I have the concept figured out but it is not working.
Here are images to show settings
Slot ID 0, Action ID 0
Ultimate Character Locomotion Item Ability Use
Slot 0, Action ID 0
Slot Item 0, Action ID 1
Ultimate Character Locomotion Item Ability Use
Slot 0, Action ID 1
Attachments
Last edited: