aook002 0 Posted February 17, 2004 I was just wondering if it was possible to make a unit sit down on a chair or something as you can make units sitdown on the floor using code. I know how use the action command to make them sit down on the floor using the command: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitname action ["SITDOWN"] Its just that i'm making  a mission and wanting to show like a commander giving a briefing to soldiers  Aook Share this post Link to post Share on other sites
Jokerr 0 Posted February 17, 2004 for this you will need to use a trigger. on activation: man1 setbehaviour "careless" man1 switchmove "onchair" Share this post Link to post Share on other sites
aook002 0 Posted February 17, 2004 And the "onchair" is the name of the chair? Aook Share this post Link to post Share on other sites
void_false 1 Posted February 17, 2004 And the "onchair" is the name of the chair?Aook it is name of animation Share this post Link to post Share on other sites
aook002 0 Posted February 17, 2004 Ok, i get it now. But i have a problem  The man goes into the 'sitting' position but how do I get him to sit on the chair exactly? Because he always seems to be not on the chair properly. My man is floating above the chair!!! Help ME!!!  Aook Share this post Link to post Share on other sites
doc_no1 0 Posted February 17, 2004 Try this use a chair x in the empty objects. make a west unit and call him a make a trigger activated by west in the on activation put this a switchmove "Fxstandunivtable" move the unit or the chair a few times till u get it perfect repeat the stuff above if you want more soldiers sitting, but just change name of next unit to b,c, and so on Share this post Link to post Share on other sites
aook002 0 Posted February 17, 2004 Thank you!!!! Â Â Â Â It works!!!! Share this post Link to post Share on other sites
Nathanz 0 Posted February 17, 2004 also what is that command to make the units height lower or higher This setpos something ..... Share this post Link to post Share on other sites
doc_no1 0 Posted February 17, 2004 How do I place a unit on a certain height? Put into init.field: Code Sample this setpos [(getpos this select 0), (getpos this select 1), 4] change 4 above to whatever height Share this post Link to post Share on other sites
John_Q 0 Posted February 17, 2004 Another technique for setting a unit's height is this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unit setpos [getpos this select 0, getpos this select 1, (getpos this select 2) + x] Where x is the number of meters that you want the unit to be lifted. Share this post Link to post Share on other sites