Jump to content

jshock

Member
  • Content Count

    3059
  • Joined

  • Last visited

  • Medals

  • Medals

Posts posted by jshock


  1. The condition finds that the aircraft is above the ground.

     

    How do I write it so that:   The condition is true therefore do not fire the trigger.

     

     

    Assume I want blueforce to fire the trigger and I have a bluforce aircraft named  air1  and I don't want him to fire the trigger.

     

    .

    {isTouchingGround _x && _x != air1} count thisList > 0

    Thank you tankbuster, I'm starting to understand the concept. Any idea how istouchingground may be used with 2 flying objects (array?) in the condition instead of one?

    {isTouchingGround _x} count [unit1,unit2] > 0

  2. In the redressInit.sqf:

    //Gear classes names go below!
    //-----------------------------
    JSHK_weaponArr = ["LMG_Zafir_F","arifle_Mk20_F"];
    JSHK_uniformArr = ["U_IG_Guerilla3_1","U_IG_Guerilla3_2","U_IG_Guerilla1_1","U_IG_Guerilla2_1","U_IG_Guerilla2_2","U_IG_Guerilla2_3","U_IG_leader"];
    JSHK_vestArr = ["V_BandollierB_khk", "Vest_V_BandollierB_rgr", "Vest_V_Chestrig_rgr"];
    JSHK_headArr = ["H_Shemag_olive","H_ShemagOpen_khk","H_ShemagOpen_tan"];
    JSHK_goggleArr = [""];
    JSHK_backpackArr = ["B_FieldPack_cbr","B_OutdoorPack_tan"];
    
    //**********************************
    JSHK_faceArr = ["classname","classname"];//<<<<<<<Add this line
    //-----------------------------
    

    And then in the fn_Redress.sqf after line 65:

    _face = JSHK_faceArr call BIS_fnc_selectRandom;

    And on line 81 add:

    _x setFace _face;
    • Like 2

  3. Awesome work.

    Can do this for factions? for example csat with rhs mod have 3 factions with infantry and each factions have their own redressing.

    ----

    Any variable to exclude unit from redressing when spawn in middle of mission via script?

    ------------

    Also would be nice have a system like this for vehicle textures, if its possible.

     

    Sorry Persian, literally just saw this today, must have missed the notification, anyhow, I currently don't have the system setup to handle factions directly (aside from the exclusion of certain factions).

     

    The variable you can use is:

    unit setVariable ["JSHK_doneRedress",true];

    As far as vehicle textures and such, vehicles weren't the intent of this system, however, the framework provide should make it simple enough to extrapolate for use with vehicles.

     

     

     

     

    Hi Jshock

     

    Great script and exactly what i need.Im having one issue that is quite simple but i dont know where or how exactly to write the paramater...

     

    I want to outfit all faction east west guer,respectively( survivorish look,not for a mil campaign) so if some west units are wearing the same as east its not an issue.

    Can you give me an example of how i write in the init for outfiting all sides with the redress script?

     

    Thanks again for this masterpiece you have saved me many hours of setting up a mission

     

    All you should have to do is execVM the redressInit.sqf for each side from within the init.sqf, basically a thread per side that you want redressed.

    _eastHandle = [EAST, true, true] execVM "JSHK_Redress\redressInit.sqf";
    _westHandle = [WEST, true, true] execVM "JSHK_Redress\redressInit.sqf";
    _civHandle = [CIVILIAN, true, true] execVM "JSHK_Redress\redressInit.sqf";
×