Aculaud 0 Posted September 8, 2002 Ok, heres the situation. I have this black hawk thats supposed to come and secure your position with infantry its carrying when you call for it. Theres no set location for you to meet it, its just supposed to go wherever YOU are, so i am trying it by putting its waypoint directly on the player, as well as the waypoint of the squad thats in it. The problem is, they never go directly to you. They just go to the last place your waypoint was. Like, if i call for them, and then i start to move around to find cover for example, they just go to the place where i was when i called them. So how do i fix their waypoint on me so that it never leaves me and they always have to follow it? Share this post Link to post Share on other sites
Nagual 0 Posted September 8, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #loop helo1 move getpos leader playergrp ~5 ? alive vehicle helo1 : goto "loop" ? !alive vehicle helo1: goto "exit" #exit exit <span id='postcolor'> Also chuck a </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> infgrp move getpos leader playergrp <span id='postcolor'> for the inf support to follow, or </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> infgrp move [(getpos leader playergrp select 0) + 20, (getpos leader playergrp select 1) + 50, 1] <span id='postcolor'> and they will stick 50 meters ahead of you, play around with that, just remeber to do the infgrp = group this stuff Share this post Link to post Share on other sites
Chris Death 0 Posted September 9, 2002 Or you could also place the waypoint manually during the mission onto the player's position; </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">wapoint setWPPos position Operand types: wapoint: Array position: Array Compatibility: Version 1.21 required. Type of returned value: None Description: Set waypoint position. Waypoint is in format Waypoint. Position is in format Position2D. Example: [groupOne, 1] setWPPos getMarkerPos "MarkerOne" <span id='postcolor'> In your case you can use the position of player instead of a marker. I've already tried that and it works (at the same time i also tried the "place the waypoint onto the player unit", but that didn't work (like in your case). ~S~ CD Share this post Link to post Share on other sites