# Enemy ai help

**URL:** https://forum.kirupa.com/t/enemy-ai-help/173903
**Category:** Uncategorized
**Created:** [December 30, 2005, 6:12pm UTC](https://forum.kirupa.com/t/enemy-ai-help/173903 "2005-12-30T18:12:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mayjarboi](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mayjarboi](https://forum.kirupa.com/u/mayjarboi)
#### Post date: [December 30, 2005, 6:12pm UTC](https://forum.kirupa.com/t/enemy-ai-help/173903/1 "2005-12-30T18:12:14Z")

</div>

can i have a little help with enemy ai please i really need help. this is basically what i need…Enemy One BehaviourHealth = 5 hits (Normal attacks) ordie if special hits (Any special)if Player away -\> wait 5 seconds -\> get nearif near -\> If Player standing or walking(running) -\> Attack!! (random attack/Attack one or Attack 2) if finished attacking -\> wait 5 seconds -\> move away elseif Player attacking(1x out 3x) -\> if Player near -\> try to Block / if not -\> ignore dumb player attacking thin air… orif Player attacking(2x out of 3x) -\> if Player near -\> let player hit you… (1 hit) if Player does special -\> if near -\> let player hit you-\> you are dead elseif away -\> block!!
