-
Content Count
422 -
Joined
-
Last visited
-
Medals
Posts posted by d3lta
-
-
Hi guys, here my little script about reammo MBT:
_gen = _this select 0; _idmenu= _this select 2; _param = _this select 3; _Car = _param select 0; _supveic = _param select 1; _type = typeOf _Car; if (((_Car distance _supveic) < 6) && alive _Car && alive _supveic) then { if ( (isEngineOn _Car ) || (isEngineOn _supveic) ) then { hintSilent "Ambos os motores precisam estar desligados antes da manutenção se iniciar."; } else { ec = effectiveCommander _Car; if ( ec==player ) then { _gen removeAction _idmenu; hintSilent "Iniciando manutenção geral do veÃculo. Aguarde."; if (local _Car) then { hint "Reabastecendo e trocando peças com problemas."; sleep 15; //ec = effectiveCommander _Car; _Car setFuel 0; _supveic setFuel 0; sleep 5; _Car setDamage 0; //_Car setVehicleAmmoDef 1; // BLOCO ISOLADO DEVIDO A BUGS _Car setVehicleAmmo 0; _Car addMagazineTurret ["2000Rnd_65x39_Belt",[0]]; _Car addMagazineTurret ["500Rnd_127x99_mag_Tracer_Red",[0,0]]; _Car addMagazineTurret ["SmokeLauncherMag",[0,0]]; { _Car addMagazineTurret ["30Rnd_120mm_HE_shells_Tracer_Red",[0]]; sleep 0.1; _Car addMagazineTurret ["32Rnd_120mm_APFSDS_shells_Tracer_Red",[0]]; sleep 0.1; } forEach [0]; hint "Rearmando."; sleep 15; //_Car setVehicleAmmo 1; // torretas hint "Manutenção completa"; _Car setFuel 1; _supveic setFuel 1; [_Car,_supveic] call api_PermiteACM; }; } else { hint "Somente o comandante dentro do veÃculo pode autorizar o inicio da manutenção."; }; }; } else { hintSilent "Você precisa de um veÃculo de manutenção próximo para iniciar o procedimento."; };;
I have a small problem with script, I need to run it twice to reammo the MBT. Why this?
Ps. I'm using a addaction to fire the script.
Ps. I'm using a dedserver to test.
Best regards
-
On the end of the script, I used :
ec = effectiveCommander _Car;
ec setVehicleAmmo 1;
It's Ok now. Thanks guys!!
Best regards .
-
(whilst waiting for a mod approval delta due to links) additional post:Asus HD 7970 were like 3 year warranty. I doubt its out of warranty. Check links on my post above when it gets approved.
Contact asus direct if you need to
Ok mestoth, I understand, I will check this option. Very Thanks.
Best regards.
-
Great news mestoth. I stopped use my hd7970, now, temporarily, I'm using a nvcard, until the fix. My radeon is out of warranty. =(
-
How I rearm the MBT turret with smoke?
I'm using _car addMagazineTurret ["SmokeLauncherMag",[0,0]]; but is failing... =(
Best regards
-
Hi masters
How I disable a opcom module using a script?
Best regards
Enviado de meu GT-N7100 usando Tapatalk
-
Good work, but it's conflicting with TAW_VD Script.
-
But why not just use bis_fnc_mp?Delta_fnc_message = { [{hint "MEH MEH MEH MEH";},"BIS_fnc_spawn",true,false] spawn BIS_fnc_MP; // do stuff }; player addAction ["Broadcast Message", {call Delta_fnc_message;}, [], 1, false, true, "", "_target == lidergeral"];
YEAHHHHHH, I tested here now and bis_fnc_mp run's fine. THANKS A LOT Mariodu62, Iceman77 and Mikie Boy.
Best regards!!
:D:D:D
-
Not sure what the problem is but...."FOCK_GHint" addPublicVariableEventHandler { private ["_GHint"]; _GHint = _this select 1; hint format["%1", _GHint]; };
and
// FOCK_GHint = "Hello everyone on the server except me!"; publicVariable "FOCK_GHint";
works fine - the only person who this doesn't see the message is the player/machine that executed the broadcast command.
maybe you need to explain more about what your trying to do or what code you are using.
The main problem is using addPublicVariableEventHandler with addaction. When I use with radio trigger , no problem.
-
Not quite sure what you're getting at. Even if hint is local, it should be broadcasted to clients because it's in a PVEH. In any case, good luck with your script.publicVariable "DisparadorDeEventoParaCliente"; and "DisparadorDeEventoParaCliente" addPublicVariableEventHandler does not broadcast to all clients?
---------- Post added at 11:28 AM ---------- Previous post was at 11:26 AM ----------
try with bis_fnc_mp...hummm.. I will try.
-
hint localize "SERVER XXXXXXXXXXXXXXXXXXXXXX";
Don't have HINT in my code, only localize that writes to arma's log.
---------- Post added at 03:40 AM ---------- Previous post was at 03:39 AM ----------
Obs. Only HintSilent can to fire to display on client PC.
-
The PVEH will not fire on the machine that executed the broadcast command. So if you're testing on your own machine, then you will not receive what's being broadcasted via the PVEH.Hi
I'm testing in dedserver, not preview mode.
-
Please, what's wrong with this code?
init.sqf
task4 = player createSimpleTask ["tskc4"]; task4 setSimpleTaskDescription ["Blah Blah Blah","Zamaks","Zamaks"]; task4 settaskstate "Created"; task4 setSimpleTaskDestination markerpos "obj4"; hand1= leaderSoldier addaction ["Speak","missaook.sqf"]; if (isServer || isDedicated) then { "DisparadorDeEventoGlobal" addPublicVariableEventHandler { localize "SERVER XXXXXXXXXXXXXXXXXXXXXX"; _NomeEvento = _this select 1 select 0; _ValEvento = _this select 1 select 1; DisparadorDeEventoParaCliente = [_NomeEvento,_ValEvento]; publicVariable "DisparadorDeEventoParaCliente"; }; } else { "DisparadorDeEventoParaCliente" addPublicVariableEventHandler { _params = _this select 1; _ne = _params select 0; hintSilent "MEH MEH MEH MEH"; }; };
missaook.sqf <------ FIRED BY ADDACTION
DisparadorDeEventoGlobal=["facaAlgo","1"]; publicVariableServer "DisparadorDeEventoGlobal";
Here, using the speak menu on leader, don't show nothing, no hintSilent, no log info... :butbut:
-
-
make sure each client knows what the variable is prior to being transmitted across the network - (publicVariable);for example - in the init.sqf - you could have if (isnil objtFOXTROT) then {objtFOXTROT = 0};
that way when each client loads in they will have access to the variable objtFOXTROT.
Very crude explanation i know...sorry
Thanks Mikie boy. But "isnil" isn't the problem, I tested. =( Is Arma3 introducing a new role security with addAction and publicvariable?
Best regards.
-
Hi masters,
PublicVariable is failing when I use publicVariable. see:
init.sqf:
_actionId1 = lidergeral addAction ["<t color='#FF0000'>Falar</t>", { nul= [] execVM "FalarComLider.sqf" } ];
FalarComLider.sqf
objtFOXTROT=1;
publicVariable "objtFOXTROT"; <-------- don't broadcast to others PC....
What's the problem?
obs 1.: I tested on dedicated (arma 3).
best regards...
D3lta
-
But if you switch to vehicle channel (if alone in a vehicle or onfoot) it should create the marker locally for only you.Hummmmmm, it's cool... I will try this:
disableChannels[]={0,1,2,3,5,6};
https://community.bistudio.com/wiki/Description.ext
Thx Iceman77
-
I'm sure there's a hacky way to do it. To literally restrict markers being local to the person whom made it... instead, why not just use a good channel? Using vehicle channel should render a marker local, even if not in a vehicle.sharing of markers is not much real. I think so.
-
INGAME placing of map markers (dblClick etc).yes is it.
-
Thx Iceman77
but, I explain better: I want to lock the possibility of player to do global markers, side markers, vehicle markers, using dblclick on the map . The marker's player is visible only for the player. I think that is more real that global markers....
best regards
-
Hi masters,
How I restrict usage of user markers on the map only to local view? I don't want global or side visualization of markers.
Best regards
D3lta
-
Try downloading the directx redistributible and running it.I revised the instalation of directx redistributible on Windows 8 and now Windows 8.1. No problems.
Does it crash in the editor or in a specific mission?
no mission specific. not in editor. menu yes but is rare.
Are you playing multiplayer?
single or multiplayer crashs too.
-
Try using a tool called GPU-Z to see if your graphics card is being used when your machine is idle. If it is, it could be a bitcoin mining program causing your crashes.If it isnt, watch the temperatures as you play the game, if it goes over 80c, you've got a heat problem.
Thanks Furret. My temperature during full rendering is 60-65 degrees. No bitcoin mining here, idle temps is low (30-40).
ARMA 3 is the only game with problem here. :confused:
-
a lot of crashs today, now, crashing with fsaa off . crazy crazy crazy
Full reammo to M2A1 Slammer ?
in ARMA 3 - MISSION EDITING & SCRIPTING
Posted
Thanks Mariodu62, but the problem that need's to run twice the script continues.... Why I need to run twice the script? server logic problem?