Search the Community
Showing results for tags 'activation'.
Found 10 results
-
(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"; }; };
- 17 replies
-
- activation
- creat
-
(and 3 more)
Tagged with:
-
Dear community. I've looked in videos and post up and down, now I have to ask advice as I cannot get this to work. I have an airfield with 6 helicopters with pilots named (variable name) pilot1 to pilot1_5 (by copying the first they are assigned the _1 etc). I initially started with a placing the chopper and naming the pilot. Placed a move waypoint, then the flightpath with move wp. finally a transport unload wp. on an invisible helipad. each pilot had their init named pilot1_1 disableAI "MOVE" ; (corresponding pilot name) trigger was named as such, with activation as "any player" in the area of the trigger. Hint "Active" ; pilot1 enableAI "MOVE" ; Hint "Active" ; pilot1_1 enableAI "MOVE" ; Hint "Active" ; pilot1_2 enableAI "MOVE" ; Hint "Active" ; pilot1_3 enableAI "MOVE" ; Hint "Active" ; pilot1_4 enableAI "MOVE" ; Hint "Active" ; pilot1_5 enableAI "MOVE" ; However they don't even fire engines, no nada zip zero. I then tried with the alive effect. Removed all names and init. placed a survivor and named him s1 (variable name) placed a trigger with !alive se and set waypont activation to 1st wp under heli with a string of other wp's until unload. Regardless of procedure above, triggers don't fire or pilots do not get the command somehow. Anyone can see the missing dot or what I'm doing wrong? Rags
- 6 replies
-
- trigger
- activation
-
(and 2 more)
Tagged with:
-
"Any Player" Activation Not Working
warhawk373 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
This seems like it should be so much more simple but this isn't working. I have a trigger set to Type - none Activation - Any Player Activation Type - Detected by Opfor The trigger will not activate though. When I change "Activation - Any Player" to "Activation - Blufor" then it works. Since it says "Activated when any player of the given side satisfies the 'Activation Condition'". Then I assume I have to put something in the "Condition" box. I tried Blufor, WEST, and SideBLUFOR_F but none of those worked. Can anybody explain how to make this work?- 3 replies
-
- any palyer
- trigger
-
(and 2 more)
Tagged with:
-
Hello, since the latest update, my trigger wont fire anymore in mp environment and i can't figure out why, maybe someone can help me here. _cond = "{vehicle _x in thisList && isplayer _x && ((getPosATL _x) select 2) < 15} count playableunits > 0"; _trg1 = createTrigger ["EmptyDetector", getPos helotarget2, true]; sleep 1; _trg1 setTriggerActivation ["ANYPLAYER", "PRESENT", false]; _trg1 setTriggerArea [300,300, 0, false]; _trg1 setTriggerType "NONE"; _trg1 setTriggerStatements [_cond,"nul = [helotarget2] execVM ""scripts\Paras.sqf""; ",""]; Any help is appreciated
-
Can not open activation in Trigger activation
Frostbite_Hgy posted a topic in ARMA 3 - TROUBLESHOOTING
Activation can't open -
Since the 64 bit update I can't access the dropdown-menu of triggers activation field. Anyone else experiencing this? Image showing what I'm referring to.
- 1 reply
-
- trigger
- activation
-
(and 1 more)
Tagged with:
-
Event handlers or script start for specific classes
Ivanoff.N posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am trying to make an addon that will make a small hud appear as soon as you enter particular vehicle. I have made the hud itself via script using rsctext. I only need the code for the init.sqf so that: 1) playable unit enters mortar as gunner (only mortar no other vehicle) - script starts 2) playable unit exits mortar - script stops I need this to work with all mortars placed on the map for all playable units, without any naming etc. (of course each player must see the hud individually). Please advise if it is possible to do and the code to do it if possible. Thank you, -
Hi. In my mission a trigger completes a task and activates a new one. The problem: In singleplayer and local MP it works... on a dedicated server it does not. But the trigger works. It activates a couple of waypoints and completes a mission...but it does not activate the new task. on activation: {_x in crew heli1} count [unit1,unit2,unit3,unit4,unit5,unit6] > 0 on act: heli2 lock false; heli3 lock false; hint "does not matter" The trigger activates when one of 6 playable units enters the heli1 helicopter. What am i doing wrong? Why does it not create the new task but do everything else on a dedicated server.
-
Make a trigger activate when one of multiple conditions is true?
WurschtBanane posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi. I want to have a heli fly somewhere when a unit enters it. But pilots are already inside so i cannot use Blufor is there as condition. I know that i can use unitname in vehiclename. But i have 6 units and when one of them enters i want the trigger to activate. Something like condition: unit1 in heli1 OR unit2 in heli1 OR unit3 in heli1 ... you get the idea.- 2 replies
-
- Trigger
- activation
-
(and 2 more)
Tagged with:
-
Two condition in "setTriggerStatements"
cybercoco posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi all ! I have a small problem, I would like to add a trigger and set two conditions for it's activation. _won is the name of the car. The first is "this", player is present in the area (cicle 3,3 around _won). The second is "!(player in _won)", player is not in the vehicle. I can't find a way to make it work... // _won is the name of the car _trg = createTrigger ["EmptyDetector", getPos _won, false]; _trg setTriggerArea[3,3,0,false]; _trg setTriggerActivation["WEST","PRESENT",true]; _trg setTriggerStatements[ "this && !(player in _won)", "hint 'yes yes yes'", "hint 'no civilian near wonno'" ];