Jump to content

Mr H.

Member
  • Content Count

    522
  • Joined

  • Last visited

  • Medals

Community Reputation

339 Excellent

4 Followers

About Mr H.

  • Rank
    Gunnery Sergeant

Contact Methods

  • Website URL
    https://mrhmilsimtools-arma3-mod.wikia.com/wiki/MRHMilsimTools_ARMA3_Mod_Wiki
  • Biography
    Whiskey Tango Foxtrot?!
  • Youtube
    https://www.youtube.com/channel/UCRAc5T6CsfXodKi9kKTET8Q?view_as=subscriber
  • Steam url id
    https://steamcommunity.com/id/wizardofodds/
  • Twitch.Tv
    https://www.twitch.tv/lunaticwraith

Profile Information

  • Gender
    Male
  • Location
    https://mrhmilsimtools-arma3-mod.wikia.com/wiki/MRHMilsimTools_ARMA3_Mod_Wiki

Recent Profile Visitors

1165 profile views
  1. private _seed = [1,101] call BIS_fnc_randomInt; if (_seed >50) exitWith {false}; // rest of your code here
  2. Mr H.

    Acex vs Zeus

    while {true} do { player setVariable ["acex_field_rations_hunger",0,true]; player setVariable ["acex_field_rations_thirst",0,true]; sleep 60 };
  3. Your code seems okay to me but I'm on my phone and can test. However since you are using cba you should maybe take advantage of thathttps://cbateam.github.io/CBA_A3/docs/files/common/fnc_waitAndExecute-sqf.html that allows you to add delay in unscheduled environment. Might even fix your issue.
  4. You answered your own question ((get3DENSelected 'object') # 0) setObjectTexture "texturePath"; is not correct ((get3DENSelected "object") # 0) setObjectTexture [0,"texturePath"]; should work for selected vehicle in 3Den
  5. Ok In your description.ext: class Extended_PostInit_EventHandlers { class TAG_MyKeyBindsInit { init = "call compile preProcessFileLineNumbers 'CBAKeys.sqf'"; }; }; in CBAKeys.sqf #include "\a3\editor_f\Data\Scripts\dikCodes.h" ["TAG_Your_Mission","TAG_setting_openYourMenu" ,["Open my very cool menu", ""], { call TAG_MyMenu_fnc; }},{},[DIK_NUMPADPLUS , [true, true, false]]] call CBA_fnc_addKeybind; // CTRL + SHIFT + NUMPAD+ will open your menu change to whatever, will appear in cba options once in game so can be custom set in wherever you declare your functions: TAG_MyMenu_fnc = { disableSerialization; _Show_RMenu_ctrl = (findDisplay 46) displayCtrl 9001; if(isNull(_Show_RMenu_ctrl)) then { _Show_RMenu_ctrl = (findDisplay 46) ctrlCreate ["RscText", 9001]; _Show_RMenu_ctrl ctrlShow false; }; _shown = ctrlShown _Show_RMenu_ctrl; (if(_shown)then{ closeDialog 2; #define IDC_CANCEL 2 closeDialog IDC_CANCEL; private ["_vehicle","_noEscort"]; _vehicle = cursorObject; _noEscort = count attachedObjects player isEqualTo 0; if (isNull _vehicle && _noEscort) then { 0 = createDialog "val_menu_1"; } else { switch (true) do { case (_vehicle distanceSqr player > 4^2 && _noEscort): {0 = createDialog "val_menu_1"; systemchat "To far"}; case (!alive _vehicle && _noEscort): {0 = createDialog "val_menu_1"; systemchat "Not Alive"}; case (!_noEscort): {0 = createDialog "val_menu_2"; systemchat "Has Escort"}; case (!isPlayer _vehicle && {_vehicle isKindOf "Man"}): {0 = createDialog "val_menu_2"; systemchat "AI"}; case (isPlayer _vehicle && {_vehicle isKindOf "Man"}): {0 = createDialog "val_menu_2"; systemchat "PLAYER"}; case (_vehicle isKindOf "LandVehicle") : {0 = createDialog "val_menu_3"; systemchat "LAND VEHICLE"}; case (_vehicle isKindOf "Car") : {0 = createDialog "val_menu_3"; systemchat "CAR"}; case (_vehicle isKindOf "Tank") : {0 = createDialog "val_menu_3"; systemchat "TANK"}; case (_vehicle isKindOf "Motorcycle") : {0 = createDialog "val_menu_3"; systemchat "Motorcycle"}; case (_vehicle isKindOf "Ship") : {0 = createDialog "val_menu_3"; systemchat "Ship"}; case (_vehicle isKindOf "Helicopter") : {0 = createDialog "val_menu_3"; systemchat "Helicopter"}; case (_vehicle isKindOf "StaticWeapon") : {0 = createDialog "val_menu_3"; systemchat "Static Weapon"}; case (_vehicle isKindOf "Plane") : {0 = createDialog "val_menu_3"; systemchat "Plane"}; case (_vehicle isKindOf "Building") : {systemchat "Building"}; case (_vehicle isKindOf "Wreck") : {systemchat "Wreck"}; case (_vehicle isKindOf "ReammoBox_F") : {systemchat "A BOX"}; case (_vehicle isKindOf "MineGeneric") : {systemchat "A Mine"}; default {}; }; }; //hint "vMenu worked!"; }else{ //________________ Menu already open ________________ closeDialog 2; #define IDC_CANCEL 2 closeDialog IDC_CANCEL; }); _Show_RMenu_ctrl ctrlShow !_shown; }; This is an example, be extra careful if you copy paste 'cause I only very briefly looked and modified your func, might be missing a few }; and some, but you'll get the idea...
  6. Also they have their waitUntilAndExecute function to keep everything sweetly in unscheduled environment. If you just need display 46 and are doing this from a mod and might need this in many scripts I suggest you create a XEHpostinit called after init and call everything from this. Browse the ace 3 github to have an example.
  7. Cba has keybinds built in use their own function. https://cbateam.github.io/CBA_A3/docs/files/keybinding/fnc_addKeybind-sqf.html
  8. https://community.bistudio.com/wiki/setObjectTexture will do what you ask but only if the vehicle has hidden selection textures check with https://community.bistudio.com/wiki/getObjectTextures
  9. you might be able to affect colors by tweaking the rvmat, https://community.bistudio.com/wiki/ArmA:_RVMAT
  10. Not directly but someone recently published an addon that allowed it. https://steamcommunity.com/sharedfiles/filedetails/?id=1771335720
  11. Nope you've got to upload them to an external site and link here.
  12. How do you even test this if you don't have a config file?
  13. https://community.bistudio.com/wiki/setObjectMaterial
  14. I believe it's usually done through the rvmat and not the textures.
  15. Mr H.

    Two complex GUI questions.

    when whatever you put is in a controls group be aware that coordinates 0.0 are the top left corner of the group and not the screen coordinates (as for other non grouped controls). as for acre you can check their github, this is the function that sets the image for the knob: https://github.com/IDI-Systems/acre2/blob/master/addons/sys_prc343/functions/fnc_render.sqf
×