Tankbuster 1747 Posted January 13, 2007 I'm writing a MP mission that starts aboard a ship, but the West infantry squad I add in never seems to start exactly where I place them in the editor, they always start way off in mid air outside the hull and fall into the water. What am I doing wrong, please? Share this post Link to post Share on other sites
chris330 0 Posted January 13, 2007 The most reliable way it set postion them using the setpos command. You'll need to give them the same height as the ship's deck. Share this post Link to post Share on other sites
Tankbuster 1747 Posted January 13, 2007 I've got the deck height sorted fine because there's a blackhawk and an AH-1 on the deck. So how does setpos work to give x and y coords? Share this post Link to post Share on other sites
chris330 0 Posted January 13, 2007 Make a game logic at the point where you want one of your men to appear. Then write the following in a script which you can call however you wish: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_logic=_this select 0 _unit=_this select 1 _x=getpos _logic select 0 _y=getpos _logic select 1 _z=(input your value of deck height) _unit setpos[_x,_y,_z] exit Call the script with a two element sized array like so: [mylogic,myunit] exec "myscript.sqs" Change the names of the 'my' variables to suit your unit and logic names. Share this post Link to post Share on other sites