Search the Community
Showing results for tags 'selected'.
Found 2 results
-
i want to load all players names to my rsclistbox then click on a player and select it and by pressing the button just hint the selected players name. My next step is to teleport the target to me. Trying to learn for a small admin panel. why does this not work? heres what i got: _display = findDisplay 46 createDisplay "RscDisplayEmpty"; _playerlist = _display ctrlCreate ["RscListbox", 1500]; _playerlist ctrlSetPosition [-0.3,0.02,0.48793,0.744756]; _playerlist ctrlCommit 0.26; _playerlist ctrlSetFontHeight 0.028; _playerlist ctrlsetFont "PuristaLight"; _playerlist ctrlSetTextColor [1,1,1,1]; lbClear _playerlist; { _index = lbAdd [ 1500, name _x ]; lbSetData [ 1500, _index, name _x ]; } forEach playableUnits; button = _display ctrlCreate ["RscButton", -1]; button ctrlSetPosition [0.625,0.2,0.423497,0.276817]; button ctrlsetFont "PuristaLight"; button ctrlSetText "hint selected!"; button ctrlSetFontHeight 0.03; button ctrlCommit 0.26; button buttonSetAction " _data = lbData [ 1500, ( lbCurSel 1500 ) ]; HINT FORMAT ['%1',_data]; ";
- 11 replies
-
- rsclistbox
- listbox
-
(and 1 more)
Tagged with:
-
Hello everyone, I have a question here. I started working on something that I considered really simple which turned out fast a bit more complicated. I've been continiously banging my head on my desk for the past hour so I decided to come over here where I would surely get help from some of the more talented folks out there. Basically how do I check if and what the player has selected in his inventory? For example: In this screenshot the player has selected the First Aid Kit. How do I check if he actually has done that?