So Im trying to make some AI using line of sight and Rex's MoveTo behaviour. Got it working great, my enemy will see, move to the player and stop to attack. I just would like to figure out a few thing, setting the enemy's rotation to the direction its moving, currently, I have it set to if CanSee - every 0.1 seconds - rotate towards player, which works but.. does weird things sometimes, and doesn't look quite right. Ive tried other methods and not found one that works, I can set the angle to the moving angle, for some reason thats not an expression.
The other thing, is the AI part. I want my enemy to after reaching the player, wait a second and move to a different place around the player. I could not find a way to do this either. If i can make the enemy touch the player, move to a random position close to the player, and then back to the player that would work. Let me know if you want to see the capx, I have two addons, rex's MoveTo, and rex's PushOutSolids.