how do i make enemy ai attack with random animations only when my possessed player is the trigger zone ?
i have got the ai to do random animations (attacks) but how do i get the ai to only do the the random attacks when i am in the trigger zone ?
-
No idea what's going on in that upside-down photo XD
The basics would be:
- Add a trigger zone near the monster.
- Make animation timelines for different attacks. Set them to "play once."
- Add health modifier gadgets to the timeline for when it should do damage.
- Add a randomiser gadget, with different outputs to different attack timelines.
- Hook the trigger zone to the randomiser "randomise" input, and to its power. (So when the player isn't in the zone, no timelines play.)
- Hook each attack's timeline's "finished" output to the "randomise" input so it plays a different attack next time.
Probably need some debugging, as this is off the top of my head. But this should get you started. Make a new post with a more specific question, if you need more help. -
Ok,thanks i’ve got it working now
Please sign in to leave a comment.