Will make this a short blog post. I have noticed someone on the BIS forums having difficulty with displaying an image in the action menu. Well since I’m banned there and since in general this could be pretty useful to know I am going to show you how to do it here.

I’ve recently done some serious cleaning up on addAction page on BIKI. One of the things you can notice if you look it up is that addAction title supports XML like syntax. This means you can use HTML like formatting and images. This means colour, size, font and even shadow effects. With combination of those features you can make some pretty fancy action menus:

This is the code for the red chopper I used, the rest is just more of the same with different colour:

player addAction [ "<img size='5' color='#ee0000' shadow='2' image='\A3\Air_F\Heli_Light_01\Data\UI\Map_Heli_Light_01_CA.paa' />", { _heli = createVehicle [ "B_Heli_Transport_01_F", player modelToWorld [0,10,0], [], 0, "CAN_COLLIDE" ]; _heli setDir (direction player - 90); _heli setVectorUp surfaceNormal position _heli; _heli setObjectTexture [0, "#(rgb,8,8,3)color(0.5,0,0,1)"]; _heli setObjectTexture [1, "#(rgb,8,8,3)color(0.5,0,0,1)"]; } ];

As you can see, everything is pretty straight forward!


addAction Quirks V2