marsuk 0 Posted August 25, 2002 is it possible to set the direction of a unit in the other two dimensions? Share this post Link to post Share on other sites
beno_83au 1369 Posted August 25, 2002 Looking up/down or its height? Share this post Link to post Share on other sites
Chris Death 0 Posted August 26, 2002 Could it be this: doWatch position Operand types: position: Array Type of returned value: None Description: Order unit to watch given position (format Position) (silent). Example: soldierOne doWatch getMarkerPos "MarkerMoveOne" ~S~ CD Share this post Link to post Share on other sites
beno_83au 1369 Posted August 27, 2002 Then you'd have to make a marker and set it's height so your man would look at it. You could create a marker, and call it look. Then make a trigger and in it's initialization field type: look setPos[getmarkerpos "look" select 0, getmarkerpos "look" select 1, 10]; 10 is the height in metres so you can change that if you want. This might work but I don't know. Good luck with it all. p.s. In the soldier's initialization field type: this doWatch getMarkerPos "look"; Share this post Link to post Share on other sites
marsuk 0 Posted August 27, 2002 but wouldn't this just move the head of the unit wot about the whole body or vehicle if it's in one Share this post Link to post Share on other sites
RED 0 Posted August 27, 2002 Why not just use the: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">player setdir 200<span id='postcolor'> Command? RED Share this post Link to post Share on other sites
Chris Death 0 Posted August 27, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">but wouldn't this just move the head of the unit wot about the whole body or vehicle if it's in one<span id='postcolor'> </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">is it possible to set the direction of a unit in the other two dimensions? <span id='postcolor'> Quote 1 is your last question, and quote 2 is your first question. If you compare them, you'll see, that they both don't fit together. What do you want now? Do you want to just let the unit turn into a direction (2 dimensions) Or do you want to let the unit look onto a spot (using 3 dimensions) While reading your question, i guessed, you did already know, how to set the (2d) direction. We answered, how you could use dimension nr.3. Now it's up to you, to combine those two ways  :edit - and btw - up/down aren't the other two dimensions (only one) - dimension nr.4 is the time factor (afaik) ~S~ CD Share this post Link to post Share on other sites
marsuk 0 Posted August 27, 2002 it seems there is some conusion here when i wrote </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">is it possible to set the direction of a unit in the other two dimensions?<span id='postcolor'> i actually ment is it possible to set the direction of a unit on the other two AXIS i can already use the setdir commande but this only enables you to set the bearing of the unit wot i want to do is change and get if possible the pitch/angle of the whole unit not just getting it to look up or down Share this post Link to post Share on other sites
Chris Death 0 Posted August 27, 2002 OK, think i've got it now I've seen a thread at www.ofpec.com forums, about rolling a units pitch, but i didn't follow this thread long enough to tell you about a positive or negative result. btw - this was on the old OFPEC forums, so you might not find it anymore there (maybe if they get their whole site up again, you will find it at their Editing snippets). ~S~ CD Share this post Link to post Share on other sites
beno_83au 1369 Posted August 28, 2002 Ahhh, you mean like lying them on their back or something? Share this post Link to post Share on other sites
beno_83au 1369 Posted August 29, 2002 Well, sorry, but I can't help you there. I wouldn't have a clue on how to do that. Share this post Link to post Share on other sites