Jump to content
Sign in to follow this  
phronk

AI Watch Target While Moving

Recommended Posts

Is there a command that can be used to get AI to watch an object/target with their weapon fixed on it while moving?  I can get the AI to move to a location and THEN watch the target, but they don't sidestep while aiming at a target. 

 

I'd like to start scripting a proof-of-concept for AI clearing buildings with house positions and it's important to get the sidestepping of AI while their weapon is fixed on a target added so they can pie corners and doorways.

Thanks!

Share this post


Link to post
Share on other sites

have you tried: doTarget _unit;?
and having a move waypoint activate at the same time.

Share this post


Link to post
Share on other sites

I've tried doTarget, doWatch, and lookAt:

doTarget: the targeting unit will keep weapon raised, but will not face target when moving; will only face target when stationary.  Additionally, the targeting unit will engage/fire at target, even if target is friendly.

doWatch: the targeting unit's head will lock onto the target, but the body will not face the target

lookAt:​ the targetting unit will only face the target when stationary, but the targeting unit seems to rotate very slowly towards the target if not already facing him

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×