Jump to content
  • 0

AI MISSION WITH VEHICLE PICTURE BOX


HiiShinoo

Question

Hey, does anyone know where I could get script i seen where the mission details pops up on the screen in box with picture of the vehicle or just text description, instead of white text in the middle of the screen.

 

I have seen it on few servers, and would like to use that along with my WAI or have WAI changed to act like that.

 

The descriptive text/picture is all available in inifistar menus is there a way to use these for the missions?

 

Thanks in advance

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You just have to replace the 'rTitleText' command with this:

_hint = parseText format["<t align='center' color='#088A85' shadow='2' size='1.75'>CHANGE HEAD HERE</t><br/><t align='center' color='#ffffff'>CHANGE TEXT HERE</t>"];
customRemoteMessage = ['hint', _hint];
publicVariable "customRemoteMessage";

This will make your text shown as a hint.

Make sure you have installed the custom remote message script by maca134 otherwise the code above will not work.

Link to comment
Share on other sites

  • 0

what you're referring to, i use that sort of thing with WAI.

this is just an copied from one of my mission files.

_veharray = ["LAV25_HQ","BTR90_HQ","BTR60_TK_EP1","BAF_Jackal2_L2A1_w","HMMWV_M998_crows_MK19_DES_EP1"];
_vehclass = _veharray call BIS_fnc_selectRandom; 

_vehname = getText (configFile >> "CfgVehicles" >> _vehclass >> "displayName"); // gets the name of the vehicle it selected
_picture = getText (configFile >> "cfgVehicles" >> _vehclass >> "picture"); // gets the picture of the vehicle

_hint = parseText format ["<t align='center' color='#FF0000' shadow='2' size='1.75'>Priority Transmission</t><br/><t align='center' color='#FF0000'>------------------------------</t><br/><t align='center' color='#FFFFFF' size='1.25'>Main Mission</t><br/><t align='center'><img size='5' image='%1'/></t><br/><t align='center' color='#FFFFFF'>The Brotherhood of Steel have stolen a<t color='#FF0000'> %2</t>go take it off them!!</t>", _picture, _vehname];
[nil,nil,rHINT,_hint] call RE; // displays the hint window, %1 shows picture, %2 displays the name of the vehicle

just place the _hint section where you see

 

[nil,nil,rTitleText,"mission white text displays here", "PLAIN",10] call RE;

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...