Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- []spawn {
- comment "By Aroun Le BriCodeur";
- private _DA3F_ArrayZonesAndRadius = [
- ["DA3F_Mrk_Name_1",150],
- [[3958.67,13722.6,0],150]
- ];
- private _DA3F_Dmg = 0;
- private _DA3F_Bats= [];
- {
- _x params[
- ["_DA3F_pos","",["",[]]],
- ["_DA3F_Radius",0,[0]]
- ];
- _DA3F_pos = switch (typeName _DA3F_pos) do {
- case "STRING": {
- if (_DA3F_pos isEqualTo "") exitWith {};
- getMarkerPos _DA3F_pos;
- };
- case "ARRAY": {
- if (str _DA3F_pos isEqualTo "[]") exitWith {};
- _DA3F_pos;
- };
- };
- _DA3F_Bats = nearestObjects [_DA3F_pos,["House", "Building"],_DA3F_Radius];
- {
- _DA3F_Dmg = (0.7 + random 0.35);
- _x setDamage _DA3F_Dmg;
- sleep 0.1;
- } forEach _DA3F_Bats;
- sleep 0.1;
- } forEach _DA3F_ArrayZonesAndRadius;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement