Hello, sorry to resurrect a post but I can't make a new topic yet.
I'd like to know how to link a RscButton to an object or unit in game. This is for a squad selection screen.
I have this so far (or some of it at least)...
squad_selector_gui.hpp
class select01: RscButton
{
idc = 6;
text = "Unit 1";
SizeEx = 0.07;
x = 0.26 * safezoneW + safezoneX;
y = 0.321 * safezoneH + safezoneY;
w = 0.2325 * safezoneW;
h = 0.04 * safezoneH;
action = "";
};
squad_selector_gui.sqf
gui_UnitJoin =
{
_idUnit = lbCurSel 7;
_classUnit = lbData [7, _idUnit];
_emptyPos = [_classUnit] join player;
};
GUI so far
I'd like to link the "Unit 1" button to a unit. Then hopefully everything will fall into place. Thanks!