Bonsoir. Je me permet de mettre un poste sur le forum pour savoir si quelqu'un serait comment rajouter une action roulette de souris (saisir l'objet) se qui le supprimera définitivement. Savez vous comment faire?
class controls {
class DeleteNearest : Life_RscButtonMenu {
idc = -1;
text = "Supprimer le plus proche";
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}...
(cursorObject getVariable ['poserbyplayer','undefined'])
enableDebugConsole[] = {"76561198168200130"};
(cursorObject getVariable ['poserbyplayer','undefined'])
class controls {
class DeleteNearest : Life_RscButtonMenu {
idc = -1;
text = "Supprimer le plus proche";
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
onButtonClick = "_allClassnames = []; { _allClassnames pushBack (_x select 1); } forEach life_placeables; _nearPlacables = nearestObjects [player,_allClassnames,5]; if ((count _nearPlacables) >= 1) then { deleteVehicle (_nearPlacables select 0); };";
x = 0.26 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.8 - (1 / 25);
w = (10 / 40);
h = (1 / 25);
};