Jump to content
Sign in to follow this  
A320

Dowatch Object

Recommended Posts

Hello everyone,

I have recently purchased Armed Assault and upon creating a mission I came across a small problem.

I have placed a few squads to defend a town with a few soldiers patrolling and the rest standing in position (untill they start moving around when an enemy comes a long). However before they get disrupted when the enemy attempts to take the town, I would like them to look/watch in a certain direction.

With Operation Flashpoint I could use the DoWatch (Object 5137) command in the Initialization field of the unit. This does not appear to work in Armed Assault.

I have tried many combinations based on threads in forums that I have read, such as using 'NearestObject' instead of just 'Object' or 'DoWatch (getpos (object 5137))' but nothing seems to work.

Any help would be appreciated.

Share this post


Link to post
Share on other sites

I couldnt get doWatch to work with ArmA either. The only simliar comand that wroked was doFace.

Share this post


Link to post
Share on other sites

unit(s) lookAt position

You can have a whole group looking at _whatever when u write in the groupleaders init:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">units group this lookAt _whatever

Share this post


Link to post
Share on other sites

this doWatch player

and

this doWatch ((getPos this) nearestObject 1057)

both work as expected when put in the init line of a soldier.

Share this post


Link to post
Share on other sites

Hello again,

Quote[/b] ]this doWatch ((getPos this) nearestObject 1057)

Cheers mate, that works perfectly. Just what I was looking for.

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  

×