Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_unit","_item"];
- if (isdedicated) exitwith {};
- handle = [] spawn {
- fnc_dbl = {
- _idc = ctrlIDC (_this select 0);
- _selectedIndex = _this select 1;
- _unit = player;
- _item = lbData [_idc, _selectedIndex];
- //quel item à été fdouble clique et on lui assigne une action
- if (_item == "ItemMap") then {[_unit,_item] spawn life_thirst = 100;};
- false
- };
- while {true} do {
- waituntil {!(isnull (finddisplay 602))};
- ((findDisplay 602) displayCtrl 638) ctrlSetEventHandler ["LBDblClick", "_this call fnc_dbl"];
- ((findDisplay 602) displayCtrl 633) ctrlSetEventHandler ["LBDblClick", " _this call fnc_dbl"];
- ((findDisplay 602) displayCtrl 619) ctrlSetEventHandler ["LBDblClick", "_this call fnc_dbl"];
- waituntil {isnull (finddisplay 602)};
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement