TrevorOfCrete 0 Posted December 12, 2005 hey how do i make a guy either stand or kneel and stay like that so he wont lay down when shot at etc.. but also to shootback. cheers Share this post Link to post Share on other sites
Sniperwolf572 758 Posted December 12, 2005 Only standing: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">NameOfTheUnit setunitpos "up" Not moving: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">NameOfTheUnit disableAI "move" Share this post Link to post Share on other sites
Trapper 0 Posted December 12, 2005 Write this setunitpos "UP" in the units init line. Share this post Link to post Share on other sites
stainer 0 Posted December 17, 2005 To get a unit to kneel type this into their init line: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setunitpos "up"; this setbehaviour "stealth"; this switchmove "crouch" Share this post Link to post Share on other sites
snipman 0 Posted December 21, 2005 Not moving:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">NameOfTheUnit disableAI "move" when you posted "Not Moved" does that apply all game ? like if i placed a waypoint to join will it move when i command it to? or will he have move disable all map? Share this post Link to post Share on other sites
Wadmann 0 Posted December 21, 2005 Quote[/b] ]when you posted "Not Moved" does that apply all game ? Yes, the unit will not be able to move on their own for the rest of the game. Although I have not tried it, it is possible to setpos the unit elsewhere during the game. If you do use this command, you could use the enableAI funtion to allow the unit to move again (or you can enable units AI just by saving the game). I usually use the  doStop command instead of disableAI. Although not quite as effective, it works well enough for me in the appropriate mission situation. Wadmann Share this post Link to post Share on other sites