Search the Community
Showing results for tags 'mutiplayer'.
Found 3 results
-
Good guys, I would like you to help me with this script: It turns out that I made this script with the purpose that when a unit is eliminated depending on the side it is, it does an action, but I do not know what it would be doing wrong. this script if it worked as it wanted in dedicated server: FAM_DeadCivilianCount = 0; publicVariable "FAM_DeadCivilianCount"; { if (side _x == Civilian && _x iskindof "Man") then { _x addEventHandler ["killed", { ["Civil", ["Han Matado un Civil. Penzalización -2 Puntos!"]] remoteExecCall ["BIS_fnc_showNotification"]; FAM_DeadCivilianCount = FAM_DeadCivilianCount + 2; publicvariable "FAM_DeadCivilianCount"; }]; }; } foreach allunits; But when I combine it in this way for the other side: FAM_DeadCivilianCount = 0; FAM_DeadPlayerCount = 0; FAM_DeadPEnemyCount = 0; publicVariable "FAM_DeadCivilianCount"; publicVariable "FAM_DeadPlayerCount"; publicVariable "FAM_DeadPEnemyCount"; { if (side _x == Civilian && _x iskindof "Man") then { _x addEventHandler ["killed", { ["Civil", ["Han Matado un Civil. Penzalización -2 Puntos!"]] remoteExecCall ["BIS_fnc_showNotification"]; FAM_DeadCivilianCount = FAM_DeadCivilianCount + 2; publicvariable "FAM_DeadCivilianCount"; }]; } else { if (side player == WEST && player iskindof "Man") then { player addEventHandler ["killed", { ["JugadorDead", ["Miembro de equipo Muerto. Penzalización -1 Puntos!"]] remoteExecCall ["BIS_fnc_showNotification"]; FAM_DeadPlayerCount = FAM_DeadPlayerCount + 1; publicvariable "FAM_DeadPlayerCount"; }]; }; } else { if (side _x == EAST && _x iskindof "Man") then { if (FAM_DeadPEnemyCount == 20) then { publicVariable "FAM_DeadPEnemyCount"; objetivoTareaTres = objetivoTareaTres + 2; publicVariable "objetivoTareaTres"; ["tareaTres", ["20 Enemigos Muertos. Reciben 2 Puntos!"]] remoteExecCall ["BIS_fnc_showNotification"]; //hint str cash; }; _x addEventHandler ["killed", { ["JugadorDead", ["Miembro de equipo Muerto. Penzalización -1 Puntos!"]] remoteExecCall ["BIS_fnc_showNotification"]; FAM_DeadPEnemyCount = FAM_DeadPEnemyCount + 1; publicVariable "FAM_DeadPEnemyCount"; }]; }; }; } foreach allunits; It throws me an error and I would like to know how they help me in Server to work correctly. thanks and regards.
-
Hi all, I have a problem that does not allow me to live in peace, I try to make an event that when a vehicle receives an amount of damage a variable is TRUE and I mark a specific action, but every time I enter the map to try the script something It goes wrong and I do not know what it would be. Someone help me? here the script that I have made. //initDamageVeh.sqf _granDamage = false; dispo1 addEventHandler ["Hit", { params ["_unit", "_source", "_damage", "_instigator"]; dispo1 setdamage 0.10; veh = getDammage dispo1; if (veh => 0.30) then { _granDamage = true; }; }];
-
editing player allowDamage false to player allow Damage True
redburn posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi guys, I have a mission which is that a helicopter breaks down and rushes to the ground, but I do not want players to take damage until the helicopter is destroyed, try the following: {_x allowDamage false;} forEach allPlayers; if (!alive gh1) then { waitUntil {isTouchingGround allPlayers}; sleep 5; {_x allowDamage true;} forEach allPlayers; }; but nothing happens, how can I make it work?