Jump to content

Marius1773

Member
  • Content Count

    1
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Marius1773

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey everybody, so I got this little piece from @Larrow and wanted to edit the fnc_test, so that the selected Item going to be removed with removeItem. It does work with the eventhandler "LBSelChanged" but If I do "LBDblClick" my game just crashes. I hope someone can help me with this Issue 🙂 handle = [] spawn { fnc_test = { _idc = ctrlIDC (_this select 0); _selectedIndex = _this select 1; _itemToRemove = lbData [_idc, _selectedIndex]; player removeItem _itemToRemove; false }; while {true} do { waituntil {!(isnull (finddisplay 602))}; hint "Double Click on Item to Remove"; ((findDisplay 602) displayCtrl 633) ctrlSetEventHandler ["LBDblClick", "_this call fnc_test"]; waituntil {isnull (finddisplay 602)}; }; };
×