Jump to content
Sign in to follow this  
Nicolas Eymerich

How to realize a list of all unit?

Recommended Posts

Sorry for the title of this topic but it is the first one come into my mynd.

However this is the problem:

Player is able to get the control of a lot of differents vehicles as well air unit. The problem: I think it wuold be an interesting thing giving him the ability to check any time the status of his own units. In particular it wuold be fine to have the status of all units show in an hint text or something similar. Unfortunatly, I've no idea of how to resolve this problem...

Any suggestions will be very much appreciated...

help.gif

Share this post


Link to post
Share on other sites

Something like this called from trigger Radio Alpha for example:

n=1;txt=""; {txt=txt+format["%1. %2\nspd=%3 hdg=%4 dmg=%5 wpn=%6\n\n",n,name _x,speed _x,direction _x,getdammage _x, primaryWeapon _x]; n=n+1} foreach units grp1; hint txt;

and in groupleader init box type grp1=group this

Share this post


Link to post
Share on other sites
Something like this called from trigger Radio Alpha for example:

n=1;txt=""; {txt=txt+format["%1. %2\nspd=%3 hdg=%4 dmg=%5 wpn=%6\n\n",n,name _x,speed _x,direction _x,getdammage _x, primaryWeapon _x]; n=n+1} foreach units grp1; hint txt;

and in groupleader init box type grp1=group this

This is a very interesting idea smile_o.gif

Plase consider however that in my mission Payer'll be able to control over 5 infantry group as well over 3 armored units and 2 air units.

The (good) idea you've suggested me will work only for a sigle group, instead. If I wuold an hint with any group of those... how I should proceed in your opinion?

Share this post


Link to post
Share on other sites

Well, it takes just a few copy'n'pastes and changing a couple of letters here and there to make the same command working for multiple groups.

How excatly you control those other groups?

Share this post


Link to post
Share on other sites
Quote[/b] ]

How excatly you control those other groups?

By action command. You can move the troops on the battlefield (using "onmapsingleclick"").

And after they die you're able to purchase other units...

At the condition, of course, you've enough credits.. wink_o.gif

Thanks for your reply smile_o.gif

I'll have a try this evening...

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  

×