Jump to content

pierremgi

Member
  • Content Count

    5643
  • Joined

  • Last visited

  • Medals

  • Medals

Community Reputation

3370 Excellent

About pierremgi

  • Rank
    First Lieutenant

Profile Information

  • Location
    Tahiti

Recent Profile Visitors

7683 profile views

Single Status Update

See all updates by pierremgi

  1. Pierre,  I am trying to change the appearance of this civilian group created in the code below.

     

    THIS CODE WORKS TO SPAWN GROUPS. SO GOOD TILL HERE.

     

    hint parseText "<img size='6' image='images\rap.paa'/><br/><t align='center' color='#b80406' shadow='2' size='2.75'>WARNING</t><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Suicide Bombers Have Been Detected.</t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Stay On High Alert!</t><t align='center' color='#b80406'></t>"; playSound "nukewarn";

    private ["_k_unit","_grp","_ksound","_chasep","_distep"];

    if (!isServer) exitWith {};

    _origin = _this select 0;
    _no        = _this select 1;
    _ksound = _this select 2;
    _chasep    = _this select 3;
    _distep    = _this select 4;

    if (_no>0) then 
    {
        _nr_k = 0;
        while {_nr_k<_no} do 
        {    
            _grp = createGroup civilian;
            _type_k = ["C_Man_casual_6_F_afro","C_man_1_1_F","C_Man_casual_1_F_asia","C_man_1_3_F","C_man_polo_1_F","C_man_polo_1_F_afro","C_Man_casual_3_F_asia","C_man_polo_1_F_asia","C_man_polo_2_F","C_man_polo_2_F_afro","C_man_polo_2_F_euro","C_Man_casual_4_F_euro","C_man_polo_3_F","C_man_polo_3_F_afro","C_Man_casual_5_F_euro","C_man_polo_3_F_asia","C_man_polo_4_F","C_man_polo_4_F_afro","C_man_polo_4_F_euro","C_man_polo_4_F_asia","C_man_polo_5_F","C_man_polo_5_F_afro","C_man_polo_5_F_euro","C_man_polo_5_F_asia","C_man_polo_6_F","C_man_polo_6_F_afro","C_man_polo_6_F_euro","C_man_polo_6_F_asia","C_man_p_fugitive_F","C_man_p_fugitive_F_afro","C_man_p_fugitive_F_euro","C_man_p_fugitive_F_asia","C_man_hunter_1_F","C_Orestes","C_Nikos","C_Nikos","C_man_sport_2_F_afro","C_man_sport_3_F_asia"] call BIS_fnc_selectRandom;
            _type_k createUnit [getMarkerPos _origin, _grp, "[this,_distep,_ksound,_chasep] execvm 'Scripts\kam.sqf'",1];
            _nr_k = _nr_k +1;
            sleep 1;
        };
    };

     

     

    I added these three lines of code below to try and  change just the uniform and headgear

     

    _uniformTypes = ["U_I_C_Soldier_Para_1_F"];
    _type_k_unit addUniform (_uniformTypes call BIS_fnc_selectRandom);
    _type_k unit addHeadgear "H_ShemagOpen_tan";

     

    SO NEW CODE LOOKS LIKE THIS NOW

     

    hint parseText "<img size='6' image='images\rap.paa'/><br/><t align='center' color='#b80406' shadow='2' size='2.75'>WARNING</t><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Suicide Bombers Have Been Detected.</t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Stay On High Alert!</t><t align='center' color='#b80406'></t>"; playSound "nukewarn";

    private ["_k_unit","_grp","_ksound","_chasep","_distep"];

    if (!isServer) exitWith {};

    _origin = _this select 0;
    _no        = _this select 1;
    _ksound = _this select 2;
    _chasep    = _this select 3;
    _distep    = _this select 4;

    if (_no>0) then 
    {
        _nr_k = 0;
        while {_nr_k<_no} do 
        {    
            _grp = createGroup civilian;
            _type_k = ["C_Man_casual_6_F_afro","C_man_1_1_F","C_Man_casual_1_F_asia","C_man_1_3_F","C_man_polo_1_F","C_man_polo_1_F_afro","C_Man_casual_3_F_asia","C_man_polo_1_F_asia","C_man_polo_2_F","C_man_polo_2_F_afro","C_man_polo_2_F_euro","C_Man_casual_4_F_euro","C_man_polo_3_F","C_man_polo_3_F_afro","C_Man_casual_5_F_euro","C_man_polo_3_F_asia","C_man_polo_4_F","C_man_polo_4_F_afro","C_man_polo_4_F_euro","C_man_polo_4_F_asia","C_man_polo_5_F","C_man_polo_5_F_afro","C_man_polo_5_F_euro","C_man_polo_5_F_asia","C_man_polo_6_F","C_man_polo_6_F_afro","C_man_polo_6_F_euro","C_man_polo_6_F_asia","C_man_p_fugitive_F","C_man_p_fugitive_F_afro","C_man_p_fugitive_F_euro","C_man_p_fugitive_F_asia","C_man_hunter_1_F","C_Orestes","C_Nikos","C_Nikos","C_man_sport_2_F_afro","C_man_sport_3_F_asia"] call BIS_fnc_selectRandom;
    _uniformTypes = ["U_I_C_Soldier_Para_1_F"];
    _type_k_unit addUniform (_uniformTypes call BIS_fnc_selectRandom);
    _type_k unit addHeadgear "H_ShemagOpen_tan";
            _type_k createUnit [getMarkerPos _origin, _grp, "[this,_distep,_ksound,_chasep] execvm 'Scripts\kam.sqf'",1];
            _nr_k = _nr_k +1;
            sleep 1;
     


        };
    };

     

    After doing this now the AI Groups do not spawn. Any Ideas why.... any help appreciated.

     

    Ant

    1. Show previous comments  1 more
    2. Antman2o1o

      Antman2o1o

      Thanks, Pierre that worked Happy holidays to you.

    3. pierremgi

      pierremgi

      Same. Happy holidays to you and your family.

    4. Antman2o1o

      Antman2o1o

      Thanks, brother appreciate all  you guys do for the community.

×