f3cuk / WICKED-AI

Wicked AI missions for your server
30 stars 59 forks source link

[WIP] Create LootTableBox.sqf #11

Closed nerdalertdk closed 10 years ago

nerdalertdk commented 10 years ago

Not Tested, but wanted more eyes on it

you need to add


wai_num_of_crates = 1;
wai_loot_tables = ["Military", "MilitaryIndustrial", "MilitarySpecial", "HeliCrash_No50s", "SupplyDrop", "HeliCrash", "MassGrave"];

to mission_cfg.sqf

and

//  Spawn Supplies -- Crates
            for "_i" from 1 to wai_num_of_crates do
            {
                waitUntil{!isNil "BIS_fnc_selectRandom"};
                _crate_position = [_position,0,30,3,0,2000,0] call BIS_fnc_findSafePos;
                if ((count _crate_position) == 2) then {
                    waitUntil{!isNil "BIS_fnc_selectRandom"};
                    _type = wai_crates call BIS_fnc_selectRandom;
                    diag_log format["WAI: Creating box at %1",_position];
                    _crates = _crates + [[_crate_position,_type,"Random"] call spawn_crates];
                };
            };

to the mission you want the loottable box.

f3cuk commented 10 years ago

Oh i love the idea of this! Will need to look at it further to make sure we can implement this!

f3cuk commented 10 years ago

Added to 2.1.0 milestone so we have some time to figure this out.

f3cuk commented 10 years ago

Wont make the upcoming release. Changed it as a milestone for 2.2.0.

f3cuk commented 10 years ago

Closing this until further notice, don't really know what to do with it..