Advertisement
bejiitas_wrath

Creating a task in Arma 3 with a custom icon.

Oct 18th, 2020
2,534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.06 KB | None | 0 0
  1. In description.ext
  2.  
  3.     class CfgTaskTypes
  4.     {
  5.     class Attack
  6.     {
  7.         icon     = \A3\UI_F_MP_Mark\Data\Tasks\Types\Attack_ca.paa;
  8.         icon3D   = \A3\UI_F_MP_Mark\Data\Tasks\Types3D\Attack_ca.paa;
  9.     };
  10.     class Annex
  11.     {
  12.         icon = a3\ui_f\data\Map\Markers\NATO\o_mech_inf.paa;
  13.         icon3D = a3\ui_f\data\Map\Markers\NATO\o_mech_inf.paa;
  14.     }
  15.     class Warlord
  16.     {
  17.         icon = a3\ui_f\data\Map\VehicleIcons\iconManCommander3_ca.paa;
  18.         icon3d = a3\ui_f\data\Map\VehicleIcons\iconManCommander3_ca.paa;
  19.     }
  20.     class Tower
  21.     {
  22.         icon = a3\ui_f\data\Map\MapControl\transmitter_CA.paa;
  23.         icon3d = a3\ui_f\data\Map\MapControl\transmitter_CA.paa;
  24.     }
  25.     class Defend
  26.     {
  27.         icon     = \A3\UI_F_MP_Mark\Data\Tasks\Types\Defend_ca.paa;
  28.         icon3D   = \A3\UI_F_MP_Mark\Data\Tasks\Types3D\Defend_ca.paa;
  29.     };
  30.     };
  31.  
  32. In the function that inits the AO.
  33.  
  34.     [west, ["task3"],["Counter enemy invasion.", "Destroy the enemy.", "Destroy all enemy forces."], [objNull, true], "ASSIGNED", 1, true, "Annex", true] call BIS_fnc_taskCreate;
  35.  
  36. This is how I got it to work just fine. I am using the task type "Annex".
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement