spirit6 51 Posted August 24, 2009 Hey guys, As said in the title i am trying to draw a line between points. I am totaly non successfull http://community.bistudio.com/wiki/drawLine All i can think of that i somehow have to fill something in the map control value that i am totaly not aware off. If somebody would be so kind to make an example by just creating a line that would be highly appriciated as there is no way i can use it :confused: Cheers, Spirit Share this post Link to post Share on other sites
charon productions 10 Posted September 16, 2009 I have also not managed to get this to work! No matter what positions (3D or screen coordinates) i try (just in case the wiki info is eroneous). I do use the correct map control designator that works with other commands related to that map control. It still seems bugged and the last time i tried was 3 years ago lol. Google and forum search just results in reports of people with the same problem. This command is in the official command set since Arma V1.00 (!) without actually working ??? Or is anyone out there to enlighten us on how to correctly use the command to get any result? Share this post Link to post Share on other sites
.kju 3245 Posted September 17, 2009 Maybe it is only for the 3d editor. Share this post Link to post Share on other sites
spirit6 51 Posted September 17, 2009 Maybe it is only for the 3d editor. I doubt Arma 1 had a 3d editor. Also i doubt commands are state specific. In this case 3deditor specific. Share this post Link to post Share on other sites
.kju 3245 Posted September 17, 2009 VBS has it for long. So a quick check confirms it: ca\editor\Data\Scripts\location.hpp 122 " _map drawLine [%POSITION, _map evalObjectArgument [""%OBJECT"", ""POSITION""], [0, 0, 0, _alpha]];", ca\editor\Data\Scripts\trigger.hpp 300 " _map drawLine [%POSITION, _map evalObjectArgument [_x, ""POSITION""], [0, 0, 1, _alpha]];", ca\editor\Data\Scripts\unit.hpp 241 " _map drawLine [%POSITION, _map evalObjectArgument [_x, ""POSITION""], [0, 1, 1, _alpha]];", 249 " _map drawLine [_map evalObjectArgument [_leader, ""POSITION""], %POSITION, [0, 1, 1, _alpha]];", 254 " _map drawLine [_map evalObjectArgument [""%DRIVER"", ""POSITION""], %POSITION, [1, 0, 1, _alpha]];", 258 " _map drawLine [_map evalObjectArgument [""%COMMANDER"", ""POSITION""], %POSITION, [1, 0, 0.5, _alpha]];", 262 " _map drawLine [_map evalObjectArgument [""%GUNNER"", ""POSITION""], %POSITION, [0.5, 0, 1, _alpha]];", 266 " _map drawLine [_map evalObjectArgument [""%CARGO"", ""POSITION""], %POSITION, [0.5, 0, 0.5, _alpha]];", ca\editor\Data\Scripts\vehicle.hpp 182 " _map drawLine [_position, _map evalObjectArgument [_x, ""POSITION""], [0, 1, 1, _alpha]];", 193 " _map drawLine [_map evalObjectArgument [""%PARENT"", ""POSITION""], _position, [0, 1, 1, 1]];", ca\editor\Data\Scripts\waypoint.hpp 301 " _map drawLine [%POSITION, _map evalObjectArgument [_x, ""POSITION""], [0, 0, 1, _alpha]];", Share this post Link to post Share on other sites
charon productions 10 Posted September 17, 2009 (edited) Interesting that it works in VBS-1 and not in Arma 1 or 2. Okay my mistake, you searched for it already in Arma2. Hmmm, the syntax really adheres to the wiki example. Strange?! I wonder where to waypoints.hpp gets included? _map drawLine [%POSITION, _map evalObjectArgument [_x, ""POSITION""], [0, 0, 1, _alpha]];", So one could confirm what type the _map variable is. I have the gut feeling that the RscmapControl needs to be of a specific type or style to enable these map drawing commands. The Editor-addon config contains: class RscDisplayMissionEditor { class ControlsBackground { }; class Controls { }; class Menu { }; }; The UI-addon config contains the definition: class RscDisplayMissionEditor { class ControlsBackground { class Background: RscListBox { x = -1; y = -1; w = 3; h = 3; }; class CA_M_Map: RscMapControl { class Legend { x = 0.030000; y = 0.030000; w = 0.299000; h = 0.122000; font = "Zeppelin32"; sizeEx = 0.026740; colorBackground = {0.906000, 0.901000, 0.880000, 0.800000}; color = {0, 0, 0, 1}; }; moveOnEdges = 0; iconCamera = "\ca\ui\data\editor_2d_camera_ca"; iconCameraColor = {0.800000, 0.600000, 0.050000, 0.800000}; iconCameraSize = 24; }; }; class Controls { /*extern*/ class B_Save; /*extern*/ class B_Restart; /*extern*/ class B_Clear; /*extern*/ class B_Preview; /*extern*/ class B_Map; /*extern*/ class B_Exit; /*extern*/ class B_Load; /*extern*/ class T_Frame1; /*extern*/ class M_Map; /*extern*/ class T_Help1; class T_Background2: RscText { x = "SafeZoneX"; y = "SafeZoneY"; w = 0.250000; h = "SafeZoneH"; colorBackground = {0.094100, 0.160800, 0.062700, 0.750000}; }; class T_Background1: RscText { x = "SafeZoneX + SafeZoneW - 1 + 0.81"; y = "SafeZoneY"; w = 0.190000; h = "SafeZoneH"; colorBackground = {0.094100, 0.160800, 0.062700, 0.750000}; }; class T_ObjectBrowser: RscTree { x = "SafeZoneX"; y = "SafeZoneY"; w = 0.250000; h = "SafeZoneH"; }; class L_NewObject: RscListBox { x = "(SafeZoneW + SafeZoneX) - (1 - 0.821)"; y = "SafeZoneY + 0.01"; w = 0.169000; h = "14 * 0.03"; sizeEx = 0.030000; colorText = {0.950000, 0.950000, 0.950000, 1}; color = {0.950000, 0.950000, 0.950000, 1}; colorTextSelect = {0.094100, 0.160800, 0.062700, 1}; colorSelect = {0.094100, 0.160800, 0.062700, 1}; rows = 15; columns = 1; }; class L_ObjectInfo: RscListBox { x = "(SafeZoneW + SafeZoneX) - (1 - 0.821)"; y = "SafeZoneY + 0.02 + 14 * 0.03"; w = 0.169000; h = "6 * 0.03"; colorBackground = {0.094100, 0.160800, 0.062700, 0.750000}; sizeEx = 0.030000; }; class CA_B_Load: RscShortcutButton { idc = 206; x = "(SafeZoneW + SafeZoneX) - (1 - 0.817)"; y = 0.520000; w = 0.180000; text = "$STR_DISP_ARCMAP_LOAD"; toolTip = "$STR_UI_EDITOR_LOAD_T"; sizeEx = 0.026740; default = 0; }; class CA_B_Save: CA_B_Load { idc = 205; y = 0.560000; text = "$STR_DISP_ARCMAP_SAVE"; toolTip = "$STR_UI_EDITOR_SAVE_T"; }; class CA_B_Restart: CA_B_Load { idc = 207; y = 0.600000; text = "$STR_UI_EDITOR_RESTART"; toolTip = "$STR_UI_EDITOR_RESTART_T"; }; class CA_B_Clear: CA_B_Load { idc = 210; y = 0.640000; text = "$STR_DISP_ARCMAP_CLEAR"; toolTip = "$STR_UI_EDITOR_CLEAR_T"; }; class CA_B_Map: CA_B_Load { idc = 209; y = 0.720000; text = "$STR_UI_EDITOR_HIDE_MAP"; toolTip = "$STR_UI_EDITOR_HIDE_MAP_T"; }; class CA_B_Preview: CA_B_Load { idc = 208; y = 0.840000; text = "$STR_DISP_ARCMAP_PREVIEW"; toolTip = "$STR_UI_EDITOR_PREVIEW_T"; default = 1; }; class CA_B_Exit: CA_B_Load { idc = 2; y = 0.920000; text = "$STR_DISP_ARCMAP_EXIT"; toolTip = "$STR_UI_EDITOR_QUIT_T"; }; }; class Menu { colorBackground = {0.250000, 0, 0, 1}; }; }; The only deviating definition to the standard RscMapControl is the icon camera: iconCamera = "\ca\ui\data\editor_2d_camera_ca";iconCameraColor = {0.800000, 0.600000, 0.050000, 0.800000}; iconCameraSize = 24; But no different type definition than in the standard RscMapControl. Edited September 17, 2009 by Charon Productions Share this post Link to post Share on other sites