Jump to content
Sign in to follow this  
TrevorOfCrete

Making My man

Recommended Posts

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

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

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
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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×