Jump to content
Sign in to follow this  
Hoot1988

stopping a unit moving alltogether

Recommended Posts

i have tried this disableAI "MOVE" and the target one to stop my units moving and targeting, however i dont want them to move at all, frozen in position if you like looking at a target.

i also want to be able to disable this to allow them to go on their knees later on too?

is this possible?

Share this post


Link to post
Share on other sites

them two dont seem to have the effect. and careless stops them from being prone which is set in the initintro.sqs

Share this post


Link to post
Share on other sites

You would have to disable the ability for the unit to be animated all together, then later when you want them to get down you would have to reenable the animation ability.

For singular units disable moving

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[this] disableAi "anim";

For singular units enable moving and get down

Crouching

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this enableAi "anim"; this setUnitPOS "middle";

Prone (on stomach)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this enableAi "anim"; this setUnitPOS "down";

It all depends on your scenario. If the units are in the trigger you can use <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{_x disableAI "anim"} forEach thisList

but if the units are moving around you would need to add the tag to the team leader of the groups init line and possibly other sodliers (idk) group=group1 this

then in a trigger OnAct line you would type in something to the effect of<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{_x enableAi "anim"} ForEach Units Group1

Haven't tested this though. smile_o.gif

Share this post


Link to post
Share on other sites

What can I do with units placed on the roof:

1) only shoot at enemys eg. AT/Sniper "top attack"

2) patrol waypoints on the roof and when in combat stay there

3) if unit is killed at roof edge they often sink into buildings

unit disableAI "TARGET" and unit disableAI "MOVE" are not that solution for AI "urban-combat-scenario" huh.gif

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  

×