lol Hab mich an der falschen Klammer orientiert...
C
/*
File: fn_boxClearer.sqf
Author: blackfisch for Native-Network.net
Description:
[EN] clears cargo of boxes placed on the map
[DE] löscht den Inhalt von Kisten auf der Karte
*/
private _boxes = [trashBox1,trashBox2]; //name-array of trash-boxes on the map || Namens-Array von Müllkisten auf der Karte
if (!isNil "boxClearActive" && {boxClearActive}) exitWith {boxClearActive = true}; //DEBUG
boxClearActive = true; //DEBUG
for "_i" from 0 to 1 step 0 do {
{
waitUntil {sleep 10; !(itemCargo _x isEqualTo [])};
clearItemCargoGlobal _x;
clearMagazineCargoGlobal _x;
clearWeaponCargoGlobal _x;
clearBackpackCargoGlobal _x;
} forEach _boxes;
};
Alles anzeigen