Fiddi 68 Posted April 12, 2016 Hey, I have a little question, how would I get who pressed a button in a custom GUI Menu? I need to forward the activating player to a script, this is the button in question. class MTHI_GUI_5: SUPER_BUTTON { idc = -2; text = "STRATEGIC MAP"; x = 0.45 * safezoneW + safezoneX; y = 0.525 * safezoneH + safezoneY; w = 0.1 * safezoneW; h = 0.05 * safezoneH; sizeEx = "0.029 / (getResolution select 5)"; action = "closeDialog 0; [/*PLAYERHERE*/] execVM 'SideOps\SideOpsSelectMission.sqf'"; }; The GUI Menu is called by an action if that helps. Share this post Link to post Share on other sites
killzone_kid 1330 Posted April 12, 2016 you can use 'player' command Share this post Link to post Share on other sites
Fiddi 68 Posted April 12, 2016 Even in multiplayer? Share this post Link to post Share on other sites
cuel 25 Posted April 12, 2016 Yes. It is a local command. On a dedicated server it will return objNull. But it doesn't have a interface so the GUI is useless there anyway Share this post Link to post Share on other sites
Fiddi 68 Posted April 12, 2016 Oh, so it was that easy... Thanks alot for the help! Share this post Link to post Share on other sites