Hello everyone,
I wrote this script last week and I'm having big problems with it.
Everything run correctly in single player but when I try to play it in mp with my clan it's a mess... The server spawn thousands of enemies instead of 3 waves...
Seems like the trigger is activated by EVERY player in spite of just once.
Thanks for your time.
*The trigger is not set repeatable.
**I have tried "activated by anyplayer" and "activated just by the owner".
for "_i" from 3 to 0 step -1 do {
hint "Trigger activado";
sleep 360;
_ammo = getArtilleryAmmo [mortar1] select 0;
_tgt = getMarkerPos "target11";
mortar1 doArtilleryFire[_tgt,_ammo,15];
_ammo = getArtilleryAmmo [mortar2] select 0;
_tgt = getMarkerPos "target12";
mortar2 doArtilleryFire[_tgt,_ammo,15];
_ammo = getArtilleryAmmo [mortar3] select 0;
_tgt = getMarkerPos "target13";
mortar3 doArtilleryFire[_tgt,_ammo,15];
sleep 40;
playSound "ura";
_tgp1 = [getPos ens1, east, (configfile >> "CfgGroups" >> "East" >> "LIB_RKKA" >> "Infantry" >> "LIB_SOV_infantry_squad")] call BIS_fnc_spawnGroup;
_tgp1 deleteGroupWhenEmpty true;
_wp2 = _tgp1 addWaypoint [position twp2 , 0];
_wp2 setWayPointType "SAD";
_tgp2 = [getPos ens2, east, (configfile >> "CfgGroups" >> "East" >> "LIB_RKKA" >> "Infantry" >> "LIB_SOV_infantry_squad")] call BIS_fnc_spawnGroup;
_tgp2 deleteGroupWhenEmpty true;
_wp2 = _tgp2 addWaypoint [position twp2 , 0];
_tgp3 = [getPos ens3, east, (configfile >> "CfgGroups" >> "East" >> "LIB_RKKA" >> "Infantry" >> "LIB_SOV_infantry_squad")] call BIS_fnc_spawnGroup;
_tgp3 deleteGroupWhenEmpty true;
_wp2 = _tgp3 addWaypoint [position twp2 , 0];
sleep 30;
_ammo = getArtilleryAmmo [gun1] select 0;
_tgt = getMarkerPos "target1";
gun1 doArtilleryFire[_tgt,_ammo,5];
_ammo = getArtilleryAmmo [gun4] select 0;
_tgt = getMarkerPos "target2";
gun4 doArtilleryFire[_tgt,_ammo,5];
_ammo = getArtilleryAmmo [gun3] select 0;
_tgt = getMarkerPos "target3";
gun3 doArtilleryFire[_tgt,_ammo,5];
_tgp1 = [getPos ens1, east, (configfile >> "CfgGroups" >> "East" >> "LIB_RKKA" >> "Infantry" >> "LIB_SOV_infantry_squad")] call BIS_fnc_spawnGroup;
_tgp1 deleteGroupWhenEmpty true;
_wp2 = _tgp1 addWaypoint [position twp2 , 0];
_wp2 setWayPointType "SAD";
_tgp2 = [getPos ens2, east, (configfile >> "CfgGroups" >> "East" >> "LIB_RKKA" >> "Infantry" >> "LIB_SOV_infantry_squad")] call BIS_fnc_spawnGroup;
_tgp2 deleteGroupWhenEmpty true;
_wp2 = _tgp2 addWaypoint [position twp2 , 0];
_tgp3 = [getPos ens3, east, (configfile >> "CfgGroups" >> "East" >> "LIB_RKKA" >> "Infantry" >> "LIB_SOV_infantry_squad")] call BIS_fnc_spawnGroup;
_tgp3 deleteGroupWhenEmpty true;
_wp2 = _tgp3 addWaypoint [position twp2 , 0];
}