Agility Pack Dodge and BD Pro

jkaczmar

Member
I just bought the agility pack and I'm using Dodge on an NPC to get it to dodge 20% of the time when shot. This all works, but the NPC consistently dodges to the right. The NPC is moving during testing, so it shouldn't default to the non-moving dodge direction (which is actually left). Is there a mechanism from within BD Pro that would allow me to pass in a parameter to randomize left/right on the dodge direciton? Here is the interace for the Start/Stop UCC Ability:

1758638928490.png

Alternatively, is there another way inside UCC that would allow me to change it up? Thanks for any ideas you have.
 
Hi, looking at the Dodge script picking a random direction from the enum using Random.Range(0, 3) should do the trick - or you can replace the 3 by a 1 if you only want the left and right direction.
 
Back
Top