Jump to content

miogushi

Member
  • Content Count

    39
  • Joined

  • Last visited

  • Medals

Everything posted by miogushi

  1. we are a lot of players to have the same probleme , but anyone found a solution ^^
  2. It works, thank you very much ! if i have an other problem with an other script, is it possible to send you a message ?
  3. thank you for everything, i have a last question, is it possible to change different range ? with a véhicle like car or truck x4 and an objet like antenna, radar, x2 for example ? you are clearly a génius btw ! ps : sorry for my english
  4. it works GREAT ! now i have an other problem ^^, i would like use the same script for an antenna but it doesn't work , i m not good at script i think i have so many errors. can you help me ?
  5. thank you for this larrow, i ill try this week :)
  6. it s ok i solve the problem véhicul init : a1 = radiocar addaction ["déploy radio", { [[_this, "deploy.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP; }]; deploy.sqf [{ if ((radiocar distance player) < 500) then { player setVariable ['tf_sendingDistanceMultiplicator', 4, true]; } else { player setVariable ['tf_sendingDistanceMultiplicator', 1, true]; }; if (isNull radiocar) exitWith {(_this select 1) call CBA_fnc_removePerFrameHandler; }; }, 10] call CBA_fnc_addPerframeHandler; radiocar forceSpeed 0; [radiocar,1] spawn rhs_fnc_gaz66_radioDeploy; [radiocar, a1] remoteExec ["removeAction", 0, true]; a2 = radiocar addaction ["remove radio", { [[_this, "deployed.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP; }]; deployed.sqf [{ if ((radiocar distance player) < 500) then { player setVariable ['tf_sendingDistanceMultiplicator', 1, true]; }; if (isNull radiocar) exitWith {(_this select 1) call CBA_fnc_removePerFrameHandler; }; }, 10] call CBA_fnc_addPerframeHandler; radiocar forceSpeed -1; [radiocar,0] spawn rhs_fnc_gaz66_radioDeploy; [radiocar, a2] remoteExec ["removeAction", 0, true]; a1 = radiocar addaction ["déploy radio", { [[_this, "deploy.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP; }]; thank you very much ! you help me so much !
  7. i call this scripts with "init" of my vehicle "radiocar" like that : a1 = radiocar addaction ["déploy radio", { [[_this, "deploy.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP; }]; If i use your last script : [{ if ((radiocar distance player) < 500) then {player setVariable ['tf_sendingDistanceMultiplicator', 1, true]; }; if (isNull radiocar) exitWith {(_this select 1) call CBA_fnc_removePerFrameHandler; }; }, 10] call CBA_fnc_addPerframeHandler; radiocar forceSpeed -1; [radiocar,0] spawn rhs_fnc_gaz66_radioDeploy; [radiocar, a2] remoteExec ["removeAction", 0, true]; [ [], { if ((missionNameSpace getVariable ["a1", false]) isEqualType false) then { private _a = radiocar addaction ["déploy radio", { [[_this, "deploy.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP; }]; missionNameSpace setVariable ["a1", _a]; }; } ] remoteExec ["call", 0, true]; i can only use action one time and it disapear after so impossible to deploy one more time my radio
  8. So now, this is my scripts : for deploy radio : [{ if ((radiocar distance player) < 500) then { player setVariable ['tf_sendingDistanceMultiplicator', 4, true]; } else { player setVariable ['tf_sendingDistanceMultiplicator', 1, true]; }; if (isNull radiocar) exitWith {(_this select 1) call CBA_fnc_removePerFrameHandler; }; }, 10] call CBA_fnc_addPerframeHandler; radiocar forceSpeed 0; [radiocar,1] spawn rhs_fnc_gaz66_radioDeploy; [radiocar, a1] remoteExec ["removeAction", 0, true]; [ [], { private _a = radiocar addaction ["remove radio", { [[_this, "deployed.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP; }]; if ((missionNameSpace getVariable ["a2", false]) isEqualType false) then { missionNameSpace setVariable ["a2", _a, true]; }; } ] remoteExec ["call", 0, true]; et for remove radio : [{ if ((radiocar distance player) < 500) then { player setVariable ['tf_sendingDistanceMultiplicator', 1, true]; }; if (isNull radiocar) exitWith {(_this select 1) call CBA_fnc_removePerFrameHandler; }; }, 10] call CBA_fnc_addPerframeHandler; radiocar forceSpeed -1; [radiocar,0] spawn rhs_fnc_gaz66_radioDeploy; [radiocar, a2] remoteExec ["removeAction", 0, true]; [ [], { private _a = radiocar addaction ["déploy radio", { [[_this, "deploy.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP; }]; if ((missionNameSpace getVariable ["a1", false]) isEqualType false) then { missionNameSpace setVariable ["a1", _a, true]; }; } ] remoteExec ["call", 0, true]; on my vehicme init : a1 = radiocar addaction ["déploy radio", { [[_this, "deploy.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP; }]; this is what happen when i use actions : http://images.akamai.steamusercontent.com/ugc/252588856179858807/97834F1A0F43C7249FA238648DB003774CF925E1/ so can you help me one more time ^^
  9. ok i will try this sunday, thank you very much !!
  10. so i tried this : [{ if ((radiocar distance player) < 500) then { player setVariable ['tf_sendingDistanceMultiplicator', 4, true]; } else { player setVariable ['tf_sendingDistanceMultiplicator', 1, true]; }; if (isNull radiocar) exitWith {(_this select 1) call CBA_fnc_removePerFrameHandler; }; }, 10] call CBA_fnc_addPerframeHandler; radiocar forceSpeed 0; [radiocar,1] spawn rhs_fnc_gaz66_radioDeploy; [radiocar, a1] remoteExec ["removeAction", 0, true]; a2 = radiocar addaction["remove radio","deployed.sqf"]; so now when anyone use action "deploy" , this action is remove for everybody but my next addaction a2 doesn't appear for, i guess it s same problem , addaction is local and i must use this addaction ["Rescue Pilot", {[[_this,"hostage.sqf"],"BIS_fnc_execVM",true] call BIS_fnc_MP;}]; but how can i say this action is a2 ? a2 = radiocar addaction ["removed radio", {[[_this,"deployed.sqf"],"BIS_fnc_execVM",true] call BIS_fnc_MP;}];
  11. ok thank you very much, i will try this tonight !
  12. i tried this : [{ if ((radiocar distance player) < 500) then { player setVariable ['tf_sendingDistanceMultiplicator', 4, true]; } else { player setVariable ['tf_sendingDistanceMultiplicator', 1, true]; }; if (isNull radiocar) exitWith {(_this select 1) call CBA_fnc_removePerFrameHandler; }; }, 10] call CBA_fnc_addPerframeHandler; radiocar forceSpeed 0; [radiocar,1] spawn rhs_fnc_gaz66_radioDeploy; if (!isDedicated) then { radiocar removeAction a1; a2 = radiocar addaction["removed radio","deployed.sqf"]; } but same problem when i use "deploy", this action is remove and "removed" is add but my mates still have "deploy"
  13. with this ? if (isServer) then { or with this maybe ? if (!isDedicated) then {
  14. hi ! i have the similar problem and i dont find solution, maybe you can help me ! all player can use addaction : a1 = radiocar addaction["Déploy","deploy.sqf"]; and this is what action do : if (!isDedicated) then { [{ if ((radiocar distance player) < 500) then { player setVariable ['tf_sendingDistanceMultiplicator', 4, true]; } else { player setVariable ['tf_sendingDistanceMultiplicator', 1, true]; }; if (isNull radiocar) exitWith {(_this select 1) call CBA_fnc_removePerFrameHandler; }; }, 10] call CBA_fnc_addPerframeHandler; radiocar forceSpeed 0; radiocar removeAction a1; a2 = radiocar addaction["removed radio","deployed.sqf"]; [radiocar,1] spawn rhs_fnc_gaz66_radioDeploy; } The problem is when i use action "Deploy", i have the new action action "removed", but others players still have action "Deploy" Can you help me ??? Ps : sorry for my very bad english
×