mikhail.b1990
Member
Hello,
I have set up up dual swords (similar to Princ of Persia The Lost Crown) and am trying to set up an attack combo. To do this, I have a Use item ability set up with SlotID -1 to allow both swords to be used at the same time. The swords are prefab variants deriving from a base prefab which has the melee action component on it. (The variants are set up correctly with different slot IDs etc to differentiate them, but same Item ID). Now when setting up the combo, if I use only durations for the event triggers (use, attack start, attack complete, allow chain attack, use complete) and do not wait for any animator events, then the combo works ok 80-90% of the time, with the remaining 10% being that the final slash in the combo executes after a strange delay, but it still finishes. However, if I wait for animator events, the use complete event simply does not fire on occasion after either the second or third slash in the 3-slash combo, and the item state and substate just gets stuck, and the animator never transitions back to Idle, or any other state. What might I be doing wrong, or has anyone else faced this issue and resolved it? I can't seem to set up a smooth combo!
PS: Just FYI, the order in which I have set up the events in each animation timeline are as follows - Use -> Attack Start -> Attack Complete -> Allow Chain Attack -> Use Complete. Not sure if this flow is incorrect, but just putting it here for info
I have set up up dual swords (similar to Princ of Persia The Lost Crown) and am trying to set up an attack combo. To do this, I have a Use item ability set up with SlotID -1 to allow both swords to be used at the same time. The swords are prefab variants deriving from a base prefab which has the melee action component on it. (The variants are set up correctly with different slot IDs etc to differentiate them, but same Item ID). Now when setting up the combo, if I use only durations for the event triggers (use, attack start, attack complete, allow chain attack, use complete) and do not wait for any animator events, then the combo works ok 80-90% of the time, with the remaining 10% being that the final slash in the combo executes after a strange delay, but it still finishes. However, if I wait for animator events, the use complete event simply does not fire on occasion after either the second or third slash in the 3-slash combo, and the item state and substate just gets stuck, and the animator never transitions back to Idle, or any other state. What might I be doing wrong, or has anyone else faced this issue and resolved it? I can't seem to set up a smooth combo!
PS: Just FYI, the order in which I have set up the events in each animation timeline are as follows - Use -> Attack Start -> Attack Complete -> Allow Chain Attack -> Use Complete. Not sure if this flow is incorrect, but just putting it here for info