Jump to content
Sign in to follow this  
opendome

Quick question regarding ALICE?

Recommended Posts

So Im using an MSO mission and in the ambient civilian files it has

 

[bIS_alice_mainscope,"ALICE_civilianinit",[
//        {
//            if (leader group _this == _this) then {_this setVariable ["rmm_gtk_exclude", true]};
//        },
        {_this setSkill 0},
        { 
                {_this disableAI _x} count ["AUTOTARGET","TARGET"]
        },
        {removeAllWeapons _this}, 
        {removeAllItems _this},
        {
if (random 1 > 0.1) then {
_this setSkill 0.2;
{_this enableAI _x} count ["AUTOTARGET","TARGET"];
_this addMagazine "HandGrenade_Stone";
_this addMagazine "HandGrenade_Stone";
_this addMagazine "HandGrenade_Stone";
_this addMagazine "HandGrenade_Stone";
_this addMagazine "HandGrenade_Stone";
_this addMagazine "HandGrenade_Stone";
_this addMagazine "HandGrenade_Stone";
_this addMagazine "HandGrenade_Stone";
// if(!("Throw" in weapons _this)) then {_this addWeapon "Throw";};
};
                if (random 1 > 0.95 && (_this isKindOf "Woman_EP1" || _this isKindOf "Woman")) then {
_this setSkill 0.1;
{_this enableAI _x} count ["AUTOTARGET","TARGET"];
                        if (random 1 > 0.5) then {
                                _this addMagazine "8Rnd_9x18_Makarov";
                                _this addMagazine "8Rnd_9x18_Makarov";
                                _this addWeapon "Makarov";
                        } else {
                                _this addMagazine "6Rnd_45ACP";
                                _this addMagazine "6Rnd_45ACP";
                                _this addWeapon "revolver_EP1";
                        };
                };
        },
{
if (isClass(configFile>>"CfgPatches">>"gbl_advanced_interaction")) then {
_this addMPeventhandler ["MPkilled",{(_this select 1) call gbl_fnc_civKilled;}];
};
}
 
 
Id like civilians to spawn with some random items and would like to know how the format would look? 
 
also I was wondering about
 
                if (random 1 > 0.95 && (_this isKindOf "Woman_EP1" || _this isKindOf "Woman")) then {
_this setSkill 0.1;
{_this enableAI _x} count ["AUTOTARGET","TARGET"];
                        if (random 1 > 0.5) then {
                                _this addMagazine "8Rnd_9x18_Makarov";
                                _this addMagazine "8Rnd_9x18_Makarov";
                                _this addWeapon "Makarov";
                        } else {
                                _this addMagazine "6Rnd_45ACP";
                                _this addMagazine "6Rnd_45ACP";
                                _this addWeapon "revolver_EP1";
                        };
                };

I think this sets it so woman_EP1 has a chance of having a makarov or a revolver (also makes me think I could use the basic format for my above format using the }else{, I just want to know if this adds the weapons to that specific female? Also how could I add multiple units to it instead of Woman_EP1?

 

Thanks!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×