Jump to content

orb1975

Member
  • Content Count

    22
  • Joined

  • Last visited

  • Medals

Everything posted by orb1975

  1. Hi guys. I have a problem with the loot inside the houses. When I walk in and see the loot, I can't take it. It seems like they become simple objects on the map and I can't take them, the option to take them does not appear. Please I need any suggestions. Thank you.
  2. I wrote this. If you are not a officer... you dont have the access to support. if (typeOf (_this select 0) == "B_officer_F") then { _this select 0 synchronizeObjectsAdd [SupportRequester]; SupportRequester synchronizeObjectsAdd [_this select 0]; BIS_supp_refresh = TRUE; publicVariable "BIS_supp_refresh"; [_this select 0, NEXO_DE_APOYO, Arty] call BIS_fnc_addSupportLink; [_this select 0, NEXO_DE_APOYO, HeliCas] call BIS_fnc_addSupportLink; [_this select 0, NEXO_DE_APOYO, PlaneCas] call BIS_fnc_addSupportLink; [_this select 0, NEXO_DE_APOYO, HeliTransport] call BIS_fnc_addSupportLink; [_this select 0, NEXO_DE_APOYO, AmmunitionSupport] call BIS_fnc_addSupportLink; };
  3. Hello guys. I have a problem with the atmosphere I want to create in Altis. I have the idea, but I can't materialize it. The idea is like this: 1) Create random Triggers (20) all over the map. 2) These Triggers must have a diameter of 2km. 3) These Triggers must not overlap. They must have a distance of 2.5km from each other. This is my code: _Map_Center = [15000,15000,51.37]; // Altis Map _SafePos = [_Map_Center, 2000, 15000, 3, 0, 20, 0] call BIS_fnc_findSafePos; _Trigger_mas_Cercano = nearestObject [_SafePos, "Trigger"]; _Distancia = _SafePos distance _Trigger_mas_Cercano; If _Distancia > 2000 then do { _Counter = 0; for "_i" from 1 to 15 do { _Counter = _Counter + 1; _SafePos = [_Map_Center, 2000, 15000, 3, 0, 20, 0] call BIS_fnc_findSafePos; _trg_trigger = createTrigger ["EmptyDetector", _SafePos]; _trg_trigger setTriggerArea [1000, 1000, 0, false, 0]; _trg_trigger setTriggerText "Trigger_" + str(_Counter); _trg_trigger setTriggerActivation ["WEST", "PRESENT", true]; _trg_trigger setTriggerStatements ["this", "null = [] execVM 'scripts\bla_bla_bla.sqf'", ""]; }; }; This is where I am stuck and extremely frustrated ... I can't get the triggers to overlap. I want that before creating the trigger on the map, the system checks if there is already another trigger nearby, and if it is less than 2000 meters away, then to find another place on the map using the "call BIS_fnc_findSafePos". Please help!!!!
  4. orb1975

    RANDOM TRIGGERS

    Try it dude... isnt work. this is the code. the maps is empty... you can try it in your empty altis.... here is the code... _Map_Center = [15000,15000,51.37]; // Altis Map _lst_Soldados_Disponibles = ["I_G_Soldier_exp_F", "I_G_Soldier_F", "I_G_Soldier_LAT2_F", "I_G_Soldier_LAT_F", "I_G_Soldier_lite_F", "I_G_Soldier_AR_F", "I_G_Soldier_GL_F", "I_G_engineer_F", "I_G_Soldier_TL_F", "I_G_Soldier_SL_F", "I_G_medic_F", "I_G_officer_F", "I_G_Soldier_A_F", "I_G_Soldier_M_F", "I_G_Sharpshooter_F"]; _Soldados_Seleccionados = []; private _Array = []; private _Distance = 2000; private _FirstPos = [_Map_Center, 2000, 15000, 3, 0, 20, 0] call BIS_fnc_findSafePos; _Array pushback _FirstPos; while {count _Array < 15} do { private _NewPos = [_Map_Center, 2000, 15000, 3, 0, 20, 0] call BIS_fnc_findSafePos; // Find a new position in random. private _i = _array findIf {_FirstPos distance2D _NewPos < _Distance}; _Counter = 0; if (_i == -1) then { _Counter = _Counter + 1; _Array pushback _NewPos; //If not too close, add it to the array [west, "HQ"] sideChat "Se colocó el marcador_" + str(_Counter); _trg_trigger = createTrigger ["EmptyDetector", _NewPos]; _trg_trigger setTriggerArea [1000, 1000, 0, false, 0]; _trg_trigger setTriggerText "Trigger_" + str(_Counter); _trg_trigger setTriggerActivation ["WEST", "PRESENT", true]; //_trg_trigger setTriggerStatements ["this", "null = [] execVM 'scripts\bla_bla_bla.sqf'", ""]; _rNum = random 999999; _Icon = ["Nucleo_" + str(_rNum), _trg_trigger] call BIS_fnc_markerToTrigger; _Icon setMarkerShape "ICON"; _Icon setMarkerType "KIA"; _Icon setMarkerColor "ColorBlack"; _Icon setMarkerSize [1,1]; _Icon setMarkerAlpha 0.75; _rNum = random 999999; _mrk_name = "Centro_" + str(_rNum); _mrk_marker = [str(_mrk_name), _trg_trigger] call BIS_fnc_markerToTrigger; _mrk_marker setMarkersize [2000, 2000]; _mrk_marker setMarkerColor "ColorBlack"; _mrk_marker setMarkerBrush "SolidBorder"; _mrk_marker setMarkerAlpha 0.25; } else { systemChat "Too close from other position"; }; };
  5. orb1975

    RANDOM TRIGGERS

    I try 4000, 5000, 6000 but dont....isnt work...the code put triggers with any distance between triggers....
  6. orb1975

    RANDOM TRIGGERS

    Hi, I tried but the code still doesn't work. I'm stuck on this and ask you please help. The code that the colleague has recommended to me, I put it, adding my code to it; but it does not work. Here is the final code, which does not work, as I indicate that I do not want the triggers to be less than 2000 meters, and still puts them together. _Map_Center = [15000,15000,51.37]; // Altis Map _lst_Soldados_Disponibles = ["I_G_Soldier_exp_F", "I_G_Soldier_F", "I_G_Soldier_LAT2_F", "I_G_Soldier_LAT_F", "I_G_Soldier_lite_F", "I_G_Soldier_AR_F", "I_G_Soldier_GL_F", "I_G_engineer_F", "I_G_Soldier_TL_F", "I_G_Soldier_SL_F", "I_G_medic_F", "I_G_officer_F", "I_G_Soldier_A_F", "I_G_Soldier_M_F", "I_G_Sharpshooter_F"]; _Soldados_Seleccionados = []; private _Array = []; private _Distance = 2000; private _FirstPos = [_Map_Center, 2000, 15000, 3, 0, 20, 0] call BIS_fnc_findSafePos; _Array pushback _FirstPos; while {count _Array < 15} do { private _NewPos = [_Map_Center, 2000, 15000, 3, 0, 20, 0] call BIS_fnc_findSafePos; // Find a new position in random. private _i = _array findIf {_FirstPos distance2D _NewPos < _Distance}; _Counter = 0; if (_i == -1) then { _Counter = _Counter + 1; _Array pushback _NewPos; //If not too close, add it to the array [west, "HQ"] sideChat "Se colocó el marcador_" + str(_Counter); _trg_trigger = createTrigger ["EmptyDetector", _NewPos]; _trg_trigger setTriggerArea [1000, 1000, 0, false, 0]; _trg_trigger setTriggerText "Trigger_" + str(_Counter); _trg_trigger setTriggerActivation ["WEST", "PRESENT", true]; //_trg_trigger setTriggerStatements ["this", "null = [] execVM 'scripts\bla_bla_bla.sqf'", ""]; _rNum = random 999999; _Icon = ["Nucleo_" + str(_rNum), _trg_trigger] call BIS_fnc_markerToTrigger; _Icon setMarkerShape "ICON"; _Icon setMarkerType "KIA"; _Icon setMarkerColor "ColorBlack"; _Icon setMarkerSize [1,1]; _Icon setMarkerAlpha 0.75; _rNum = random 999999; _mrk_name = "Centro_" + str(_rNum); _mrk_marker = [str(_mrk_name), _trg_trigger] call BIS_fnc_markerToTrigger; _mrk_marker setMarkersize [2000, 2000]; _mrk_marker setMarkerColor "ColorBlack"; _mrk_marker setMarkerBrush "SolidBorder"; _mrk_marker setMarkerAlpha 0.25; } else { systemChat "Too close from other position"; }; };
  7. orb1975

    RANDOM TRIGGERS

    No dude...i have try it but nothing... isnt working... thanks anyway for your help...
  8. orb1975

    RANDOM TRIGGERS

    Ok. I will try it. Thanks dude!
  9. (VERSION EN ESPAÑOL) Hola chicos! Mi nombre es Omar y soy de Argentina. Este es mi primer posteo, así que desde ya pido disculpas por mi sintaxis y sobre todo por mi inglés que es pobre. 1) Quiero crear un código que se pueda usar en cualquier mapa; no importa si es Stratis, Takistan, Altis, Chernarus, o cualquier otro mapa, oficial y no oficial. 2) Que sea SOLO CODIGO. No quiero que haya ningún elemento u objetos en el mapa en el momento de la edición, a excepción de nuestro personaje. 3) Este código que estará en un archivo SQF debe poder leer todo el mapa y encontrar solo las locaciones "NameVillage", "NameCity" y "Name City Capital", guardando en un Vector todas estas locaciones. 4) Con cada locación que vaya encontrando, deberá agregar en ella, un Gatillo y un Marcador (ambos dos en el mismo lugar, en la zona cero de esa locación). 5) Que ese Gatillo, se active cuando cualquier jugador entre en la zona del gatillo. 6) Que al activarse ese Gatillo, llame a otro archivo SQF. Aquí les muestro lo que llegué a hacer, pero quedo trabado en la parte de activación del gatillo: Hasta aquí llegué. Creo que hice todo bien, pero se me escapa algo, dado que, cuando ejecuto el mapa y entro a un pueblo no se activa ningún gatillo y eso me frustra un poco. Desde ya agradezco mucho por la posible ayuda que pueda recibir de ustedes. Gracias. (MY POOR ENGLISH VERSION) Hello guys! My name is Omar and I am from Argentina. This is my first post, so from now on I apologize for my syntax and especially for my poor English. 1) I want to create a code that can be used on any map; it doesn't matter if it's Stratis, Takistan, Altis, Chernarus, or any other map, official and unofficial. 2) Make it ONLY CODE. I don't want any items or objects to be on the map at the time of editing, except for our character. 3) This code that will be in an SQF file must be able to read the entire map and find only the locations "NameVillage", "NameCity" and "Name City Capital", saving all these locations in a Vector. 4) With each location you find, you must add a Trigger and a Marker to it (both in the same place, at ground zero of that location). 5) That Trigger is activated when any player enters the trigger zone. 6) That when that Trigger is activated, call another SQF file. Here I show you what I got to do, but I get stuck in the trigger activation part: I am done. I think I did everything right, but something escapes me, since when I run the map and enter a town no trigger is activated and that frustrates me a bit. I already thank you very much for the possible help I can receive from you. Thank you. _All_Locations = nearestLocations [getPos player, ["NameVillage","NameCity","NameCityCapital"], 30000]; _Locations_Count = (count _All_Locations); _Counter = -1; // An Array start with cero. for "_i" from 1 to (_Locations_Count) do { _Counter = (_Counter + 1); _Location = _All_Locations select _Counter; // Triggers creation _trigger = createTrigger ["EmptyDetector", getpos _Location]; _trigger setTriggerArea [300, 300, 0, false]; _trigger setTriggerActivation ["ANYPLAYER", "PRESENT", true]; // Markers creation _createdMarker = [str(_Location), _trigger] call BIS_fnc_markerToTrigger; _createdMarker setMarkerShape "ELLIPSE"; _createdMarker setMarkerSize [300,300]; _createdMarker setMarkerColor "ColorOrange"; _createdMarker setMarkerBrush "SolidFull"; _createdMarker setMarkerAlpha 0.5; if (triggerActivated _trigger) then { hintc "TRIGGER ACTIVATED"; null = [] execVM "Mi_Loot_Init.sqf"; }; };
  10. the ({deletevehicle _x} foreach units _Patrulla;) part is not working for me dude.... i dont know what happend.
  11. Dude..this is my code (dont work)... i need to configurate this line: _trigger setTriggerActivation ["ANYPLAYER", "PRESENT", true]; _trigger setTriggerStatements ["this", "[west, 'HQ'] sideChat 'you are in'; null = [] execVM 'Mi_Loot_Init.sqf'", "hint 'you are out'"]; Isnt working (the desactivation red part ), and i dont know why...
  12. Thats the way? Isnt work for me. What is wrong whit this? I cant make it happend with the desactivation part... _trigger setTriggerStatements ["this", "[west, 'HQ'] sideChat 'ESTAS ENTRANDO EN ZONA DE LOOTEO'; null = [] execVM 'Mi_Loot_Init.sqf'", "hint 'ESTAS SALIENDO'"];
  13. Thanks abaut that! 1).. in your last post you put this _trigger setTriggerStatements[ "this", "", "" ]; //Replace activation to script call i dont know how can i do it. 2) Can u teach me, how can i put a desactivation scritp (example: when the player leave the trigger area). Thanks
  14. This is my code now. Can U show me, your example with this code? Thanks // Creamos los Triggers _trigger = createTrigger ["EmptyDetector", getpos _Location]; _trigger setTriggerArea [300, 300, 0, false]; _trigger setTriggerActivation ["ANYPLAYER", "PRESENT", false]; _trigger setTriggerStatements ["this", "[west, 'HQ'] sideChat 'ESTAS ENTRANDO EN ZONA DE LOOTEO'; null = [] execVM 'Mi_Loot_Init.sqf';", ""]; // Creamos los Marcadores _createdMarker = [str(_Location), _trigger] call BIS_fnc_markerToTrigger; _createdMarker setMarkerShape "ELLIPSE"; _createdMarker setMarkerSize [300,300]; _createdMarker setMarkerColor "ColorOrange"; _createdMarker setMarkerBrush "SolidFull"; _createdMarker setMarkerAlpha 0.5; Thanks dude...
  15. Sorry about that. U are the Man!!!! its working dude! THANKS!!!!
  16. Thanks dude... this is the new code with your modification, and when i enter in the zone, nothign happend.... no hint, no call, no nothing. Can u test this in your arma? Im in Malden map in Le Port Town. Thanks. _All_Locations = nearestLocations [getPos player, ["NameVillage","NameCity","NameCityCapital"], 30000]; _Locations_Count = (count _All_Locations); _Counter = -1; // An Array start with cero. for "_i" from 1 to (_Locations_Count) do { _Counter = (_Counter + 1); _Location = _All_Locations select _Counter; // Triggers creation _trigger = createTrigger ["EmptyDetector", getpos _Location]; _trigger setTriggerArea [300, 300, 0, false]; _trigger setTriggerActivation ["ANYPLAYER", "PRESENT", true]; if (triggerActivated _trigger) then { _trigger setTriggerStatements ["this", "[west, 'HQ'] sideChat 'Trigger Activated'; null = [] execVM 'Mi_Loot_Init.sqf';", ""] hint "TRIGGER ACTIVATED"; }; // Markers creation _createdMarker = [str(_Location), _trigger] call BIS_fnc_markerToTrigger; _createdMarker setMarkerShape "ELLIPSE"; _createdMarker setMarkerSize [300,300]; _createdMarker setMarkerColor "ColorOrange"; _createdMarker setMarkerBrush "SolidFull"; _createdMarker setMarkerAlpha 0.5; };
×