Jump to content
Sign in to follow this  
Linker Split

unitPos as condition

Recommended Posts

Hi all, I have a question:

I'm making a CQB mission for my HDT Island, and I need to know if it's possible to set the "unit pos" (UP,DOWN,AUTO) as condition.

So I mean, when my soldier is in position "DOWN", the enemy will not see him, and so on... do you understand? plz help me.

I don't know how to do it.

In a few words:

I want the "setUnitPos" command to work not as an activated command, but as a condition command. i know it's impossible to use the setunitPos as condition, but is there a way to implement it?

If I try:

Condition:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{_x setUnitPos "DOWN"} count westside == 1

will it work?

thanks for your answers

Linker Split

Share this post


Link to post
Share on other sites

Are you doing that for AI units or to player units?

For AI units one solution could be to force them kneel / prone everytime they are not moving for a long enough time and set a global variable to indicate their stance.

I've used a trigger to make AI units automatically kneel when not moving. I check the speed and if the unit is not wounded too much, and then set the unit to kneel. There is a small delay before kneeling. Into that trigger could as well go a global variable which you would set true/false.

Of course this could be done in a script too.

If it's for player units then this won't work.

Share this post


Link to post
Share on other sites

edit: whoops sorry wrong board - thought you gotta go for arma wink_o.gif never mind

regards

rocko

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  

×