limmy3 0 Posted July 31, 2006 Hello, after my last question was answered perfectly and works fine. Here is my next problem.  And I have another millions...  I have a soldier in a MG who stands in a wall corner so he should look out 45°. The soldier is MoveInGunner to MG and Soldier DoTarget Player linked. To make it clear one wall standing 0° (North) to 180° the second 270° to 90°. The second wall touches with the 270° end the other with its 180° end. That's stupid ...  So the soldier should look in direction towards 45°.  But he doesn't he looks to 270° and therefore towards the wall. I tried the SetDir command of 45° (North East) but is won't work. The player is in direction of about 330° to the soldier. So this shouldn't effect the soldier and there are to many walls between them. The second question would be is it possible to give the soldier the command to scan horizon? Well, actually the part between the walls from 0° to 90°. Everybody is  Regards limmy3 Share this post Link to post Share on other sites
UNN 0 Posted August 2, 2006 Hi, To watch a specific direction try this, place a game logic in the direction you want him to look. Then call: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">MGGunner DoWatch [(GetPos GL1) Select 0,(GetPos GL1) Select 1,3] GL1 is the name you give to the game logic. MGGunner is the name you giive to your machine gunner. To get him to scan a particular arc, just periodicly move the game logic and call the above code again. P.S You don't need a logic, you can do it all with trigonmetry. But it's easier to demonstrate the idea this way. Share this post Link to post Share on other sites