Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
tom4_atpl

Text position / all playable units setposition

Recommended Posts

Hello guys,

 

I am making bigger mission and I need help with two things:

 

Text position/format

1. I need to have a text displayed in upper left corner because this text will be displayed all the time. What I know use only "hint",  but I would prefer use text desribed on the picture.

https://ibb.co/JQjPBYN

I need to have text displayed like hint, no moving, no specials just simple text, as described on the picture.

 

all playable units setposition

I have simple script "player setPos (getPos h21base)" used for transportation unit to different place. But I need that this script will transport ALL actual playable units OR units in the players group.

 

Many thanks for help guys.

Have a nice weekend,

Tomas

Share this post


Link to post
Share on other sites

Text position/format

Try BIS_fnc_typeText function with its examples.

all playable units setposition

For all playable:

_meters = 3; /// max random radius;
_azimuth = 360; /// max random degrees;

{_x setPos (h21base getRelPos [random _meters, random _azimuth])} forEach playableUnits; 
/// random positions within 3 meters away from h21base to avoid collision;

For all player group units:

{_x setPos (h21base getRelPos [random 3, random 360])} forEach units group player;

 

  • Like 1

Share this post


Link to post
Share on other sites

Ibragim A: It works well! Thank you very much.

 

Any chance somebody else about the text format, hint format or the repoistion it?

Share this post


Link to post
Share on other sites
20 minutes ago, tom4_atpl said:

Any chance somebody else about the text format, hint format or the repoistion it?

Structured text is what you are looking for. Read about the attribute you want to change and change it in your script.

Share this post


Link to post
Share on other sites

×