MechSlayer
Member-
Content Count
90 -
Joined
-
Last visited
-
Medals
Everything posted by MechSlayer
-
Tried changing it to 2 but doesn't works, these are the files that gives me error "C:\Program Files (x86)\Steam\steamapps\common\Arma 3\@NoPixel\addons\bcas.pbo", "C:\Program Files (x86)\Steam\steamapps\common\Arma 3\@NoPixel\addons\calipo_usvb.pbo", "C:\Program Files (x86)\Steam\steamapps\common\Arma 3\@NoPixel\addons\cg_tactical_vests.pbo", "C:\Program Files (x86)\Steam\steamapps\common\Arma 3\@NoPixel\addons\cl3_mod_client.pbo", "C:\Program Files (x86)\Steam\steamapps\common\Arma 3\@NoPixel\addons\cnx_base.pbo", "C:\Program Files (x86)\Steam\steamapps\common\Arma 3\@NoPixel\addons\d3s_nemises_f80_14.pbo", ...
-
It's possible to create an array with the cfgPatches of every loaded addon? something like ["a3", "3den", "air_f", "acex", etc..]
-
Thanx
-
I was playing around with the setObjectTexture and ctrlSetText functions, and after some time I made this, a kind of video player (actually it isn't a video just around 3000 frames running very fast). It works pretty well, only if you are stuck on 60FPS. The screen gets pretty bugged if you have a change of 3-4 fps but it doesn't apply for dialogs. Here's the mission if you want to test it. If the video and audio aren't synced just play with the sleep inside the functions. I converted the video to frames using VLC.
-
I was searching something like that for 1 hour and didn't found anything xD so I tried another way.
-
I need to get the part of a unit that has been damaged, i've already tried with "_selection" from the Damage eventhandler but it always says "body", any Idea?
-
How can i make this line of code effect all Opfor AI units in the server?
MechSlayer replied to HAFGaming1's topic in ARMA 3 - MISSION EDITING & SCRIPTING
{ if (_x side == east) then {_x addEventHandler ["HandleDamage", { params ["_unit", "_selection", "_damage", "_source", "_projectile", "_hitIndex", "_instigator", "_hitPoint"]; _damage = _damage/2 //Receive two times less damage use * if you want it to receive more damage _damage; }];}; } forEach allPlayers; -
How can i make this line of code effect all Opfor AI units in the server?
MechSlayer replied to HAFGaming1's topic in ARMA 3 - MISSION EDITING & SCRIPTING
{ if (_x side == east) then {_x addEventHandler ["HandleDamage", {1}];}; } forEach allPlayers; For players only and for AI and Players { if (_x side == east) then {_x addEventHandler ["HandleDamage", {1}];}; } forEach allUnits; -
Code won't continue after while loop
MechSlayer posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have this code GSO_fnc_necesidades = { while {true} do { _sed = player getVariable "sed"; _sed = _sed - 1; player setVariable ["sed", _sed, true]; Sed = _sed; sleep 5; }; while {true} do { _hambre = player getVariable "hambre"; _hambre = _hambre - 1; player setVariable ["hambre", _hambre, true]; Hambre = _hambre; sleep 10; }; }; And I call it with [] spawn GSO_fnc_necesidades; The problem is that it runs only the first while loop, any fix? -
Code won't continue after while loop
MechSlayer replied to MechSlayer's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Okey fixed by using [] spawn instead of call -
Code won't continue after while loop
MechSlayer replied to MechSlayer's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Now it won't continue after the "call GSO_fnc_necesidades; GSO_fnc_InitCliente = { cutText ["","BLACK OUT"]; waituntil {!(IsNull (findDisplay 46))}; cutText [format ["Recuperando datos de %1", name player],"BLACK OUT"]; [player] remoteExecCall ["Servidor_fnc_crearJugador", 2]; sleep 6; [] spawn GSO_fnc_configuraciones; [] spawn GSO_fnc_necesidades; 1 cutRsc ["HUD","PLAIN",-1,false]; call GSO_fnc_hud; (findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 == 219) then {[] spawn GSO_fnc_abrirMenu;};"]; cutText ["", "PLAIN"]; ["Datos cargados", "info", 5] spawn GSO_fnc_notificaciones; }; -
Code won't continue after while loop
MechSlayer replied to MechSlayer's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks, gonna try it -
Code won't continue after while loop
MechSlayer replied to MechSlayer's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hmm strange, I made it work like this before. I need to run them separate because one must go slower than the other -
interaction menu [RELEASE] Editable interaction menu
MechSlayer replied to MechSlayer's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks. If you find any failure or have any idea for improvements tell me -
Hey, I have this button class RscButton_1615: RscButton { idc = 1615; x = 0.224375 * safezoneW + safezoneX; y = 0.808 * safezoneH + safezoneY; w = 0.065625 * safezoneW; h = 0.042 * safezoneH; }; How can i set a pictur with ctrlSetText?
-
Haha no problem, thanks.
-
I mean removing the blackness when you move the mouse over the button
-
Thanks. How can I remove the Highlight when you move the mouse over the button ?
-
Return true if the word it's inside the array
MechSlayer posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have this array Cars = ["Car_1","Car_2","Car_3"] How can I make this ("Car" in Cars) return true without typing _1 or _2 ? -
Return true if the word it's inside the array
MechSlayer replied to MechSlayer's topic in ARMA 3 - MISSION EDITING & SCRIPTING
_array = getCursorObjectParams select 1; // ["door_4","door_4_action"] _count = count _array - 1; // Number of elemnts - 1 for "_i" from 0 to _count do //Change _i from 0 to the count result { _a = _array select _i; //Select each element _a = toLower _a; _find = str _a find "door"; //Check if "door" it's inside }; This seems to work pretty fine, Thanks all! -
How can I disable the interactions menu? (The one that pops up when you spin the mouse wheel) Or is there a mod that already does that?
-
How can I attach interactions to objects?
MechSlayer posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
How can I make that when you are watching a door for example, the interaction "Open door" appears on the door handle instead of the left side of the screen? -
How can I attach interactions to objects?
MechSlayer replied to MechSlayer's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks! -
How can I attach interactions to objects?
MechSlayer replied to MechSlayer's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I mean something like this -
Add all objects from arrays into a crate
MechSlayer posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey, I'm trying to add all the wapons that I have into 4 arrays to a crate. I have this code: { if !(_x isEqualTo []) then { _Caja addWeaponCargoGlobal [_x,1]; _Caja addBackpackCargoGlobal [_x,1]; _Caja addItemCargoGlobal [_x,1]; _Caja addMagazineCargoGlobal [_x,1]; }; } forEach _array1; { if !(_x isEqualTo []) then { _Caja addWeaponCargoGlobal [_x,1]; _Caja addBackpackCargoGlobal [_x,1]; _Caja addItemCargoGlobal [_x,1]; _Caja addMagazineCargoGlobal [_x,1]; }; } forEach _array2; { if !(_x isEqualTo []) then { _Caja addWeaponCargoGlobal [_x,1]; _Caja addBackpackCargoGlobal [_x,1]; _Caja addItemCargoGlobal [_x,1]; _Caja addMagazineCargoGlobal [_x,1]; }; } forEach _array3; { if !(_x isEqualTo []) then { _Caja addWeaponCargoGlobal [_x,1]; _Caja addBackpackCargoGlobal [_x,1]; _Caja addItemCargoGlobal [_x,1]; _Caja addMagazineCargoGlobal [_x,1]; }; } forEach _array4; And this is the array: [["H_TurbanO_blk","G_Aviator","U_C_Poloshirt_stripped"],[],["OPTRE_BR55HB"],[]] The problem is that it adds some blank objects and duplicate others. Is there another way?