Hi OFPEC, i was just wondering if i call this script via a trigger in Multiplayer will it create a mess up of where the explosions actually are on each client.
// random mortar fire function
if (isServer) then {
if (isNil "DZ_fnc_MortarFire") then {
DZ_fnc_MortarFire = {
private ["_ammo", "_marker", "_xcoord", "_ycoord", "_timer", "_fire"];
_ammo = _this select 0;
_marker = _this select 1;
_xcoord = _this select 2;
_ycoord = _this select 3;
_timer = _this select 4;
_fire = true;
while {_fire} do {
_firerun = _ammo createvehicle [(getmarkerpos _marker select 0) + random _xcoord, (getmarkerpos _marker select 1) + random _ycoord, getmarkerpos _marker select 2];
sleep (random _timer);
};
};
};
};
mf1 = ["ARTY_Sh_81_HE", "mort1", 100, 150, 17] spawn DZ_fnc_MortarFire;
I am learning my answer from the surrounding threads - god bless ofpec without you tis' a cold world indeed salute