Quote:
Originally Posted by Razor_Gunn_Khillion
Hello all I would like an enemy character to walk between two points until my character comes into range then attack my character if my character moves out of range I would like the enemy character to go back into its sentinel loop.So far I can make the enemy character either do the sentinel loop or attack but not both how can I do both? Thanks in advance!
|
Loop: infinite
[
if *your char* distanceTo *enemy* >= however close you want them.
[
enemy turnToFace pointOne duration=whatever
enemy moveTo pointOne duration=whatever
enemy turnToFace pointTwo duration=whatever
enemy moveTo pointTwo duration=whatever
]
else
[
enemy turnToFace *your char* duration=whatever
enemy.Attack (class-level method)
]
]
hope that helps you. sorry for it being so rough its 1:15am and im just checking the forums before i go to bed. just got back from a lan tourn.