Search the Community
Showing results for tags 'Trigger'.
Found 191 results
-
Trigger lightning module at random interval over time
Irishcream216 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
First post here, long time lurker. I used the search function but was unable to find a solution to the problem at hand. I appreciate any advice. As the title suggests, I am attempting to generate a "ring of lightning" around an object for a cinematic effect. I am using the ZEUS lightning bolt modules in 3den, placed in a circle around said object. What I would like to happen is as follows: When the player(s) get within a certain range, the trigger(s) will activate the array of modules (one at a time, in quick succession) at random(z1 - z16), for a certain amount of time. When that time expires, they will then ALL fire at once for a brilliant flash finale. It sounds simple on the surface, but I cannot for the life of me get them to fire at random, even adjusting the trigger timer. After a set interval, they all fire at once. I have tried using multiple triggers in groups, and even having a separate trigger for each module covering an area of 250m radius each, centered on exactly the same point. I am VERY new to scripting, but previously have been able to do things without calling a function or a script from SQF. please advise, and thank you. -Irish -
How to verify if all players are dead in a coop mission? I was investigating by blind tests to use the (ArmaReforger>Prefabs>ScenarioFramework>Components) LogicCounter.et to check if some player is still alive but I failed. Last week has been published my first mission for Reforger without to really check if some player still alive on the mission, and that is bad hehe. Any North could be awesome.
-
Hello, I've made a script to help people to create missions having spawn zones with random spawn points and waypoints It can be used with any mods/maps (or even pure vanilla) The script, with a detailed usage guide can be found on GitHub Preconfigured (and non-configured) templates of the script can be downloaded here Usage All you need to do is to place one (or more) triggers on the map and name it respecting a specific format : DynamicSpawn_<Activating side>_<Side to spawn>_<Amount of infantry squads>_<Amount of waypoints for infantry>_<Amount of vehicle squads>_<Amount of waypoints for vehicles>_<Amount of air units>_<Amount of air units waypoints (actually unused)>_<ID of the trigger> Where : <Activating side> is the side that will activate the trigger when entering in <Side to spawn> is the side of the units that will spawn when the trigger is activated Both sides can have the values : "WEST", "EAST", "GUER", "CIV" <Amount of infantry squads>, <Amount of vehicle squads> and <Amount of air units> are the amount of squads that will be spawn (except for air, that's just the amount of units). They can have any value above zero (including zero if you don't want such type of units) <Amount of waypoints for infantry>, <Amount of waypoints for vehicles> and <Amount of air units waypoints> are the amount of waypoints for each kind of squads (actually unused for air units). They can have any value above zero (including zero if you don't want the units to move) or a range of values using a comma , as separator, such as 4,8 if you want between 4 and 8 waypoints. <ID of the trigger> is a numeric value used to identify each triggers. Keep them unique or you may expect bugs (such as units spawning/moving at the wrong place) For example : DynamicSpawn_WEST_EAST_5_6,8_2_4_1_1_1 will trigger when an unit from WEST enters the trigger and will spawn units from EAST such as : 5 infantry squads having each between 6 and 8 waypoints 2 vehicle squads having 4 waypoints 1 air unit The Id of the trigger is 1 Then, you can place spawn points, named such as : <Type of group to spawn>_SPAWN_POINT_<id of the trigger>_<id of the spawn point> Where : <Type of group to spawn> can have as value any of those : INFANTRY, VEHICLE or AIR <id of the trigger> must match the id of the trigger previously created, so that way, when trigger 1 will be activated, the script will know it must use the *_SPAWN_POINT_1_* as spawn points. That way, spawn points can be placed outside of the trigger (allowing, for example, air units coming from far away) <id of the spawn point> is used to have different unique names for spawn points (and that value is automatically incremented when copying/pasting the spawnpoints) For example : INFANTRY_SPAWN_POINT_1_1 INFANTRY_SPAWN_POINT_1_2 INFANTRY_SPAWN_POINT_1_3 ... VEHICLE_SPAWN_POINT_1_1 VEHICLE_SPAWN_POINT_1_2 VEHICLE_SPAWN_POINT_1_3 VEHICLE_SPAWN_POINT_1_4 ... AIR_SPAWN_POINT_1_1 AIR_SPAWN_POINT_1_2 ... The example below shows many spawn points placed in Stratis. You can notice the air spawn points are placed all around the map, far away from the trigger. The waypoints work the same way than the spawn points : Their format is : <Type of group>_WAYPOINT_<id of the trigger>_<id of the waypoint> : INFANTRY_WAYPOINT_1_1 INFANTRY_WAYPOINT_1_2 INFANTRY_WAYPOINT_1_3 INFANTRY_WAYPOINT_1_4 ... VEHICLE_WAYPOINT_1_1 VEHICLE_WAYPOINT_1_2 VEHICLE_WAYPOINT_1_3 ... There is no air waypoints, the behavior of air vehicles is different : Once spawned (1000 meters altitude), they will fly and loiter around the center of the trigger (Altitude 250, radius 500) When a unit from the activating side is detected by the spawning side, the aircrafts will go Seek and Destroy on that unit location. When the search is over, they will go back to loiter The script is highly configurable and customizable You can configure which units type will spawn. This way, you can use any mods, as long as you tell the script the classnames of the units/groups you want to use You can inject custom scripts that can be executed at : Trigger creation Trigger activation Trigger deactivation Trigger cleared (when all spawned units are dead) More informations on GitHub
-
Trigger activated by support module.
RabbitxRabbit posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
There are a lot of resources on how to make a trigger activate a support module, but how do you make a support module activate a trigger? I've been scouring the net and even trying chatGPT for an answer but I'm coming up empty. I'm trying to trigger an event when my player calls in an airstrike. Specifically, I'm try to keep my CAS plane from taking off from TeTeT's Nimitz mod aircraft carrier before the air strike is called in. There are a lot of other applications that I would like to use this for as well. Is there anything I can put in the trigger's condition field to activate it when the support module gets activated? Something like "supportModuleActivated"? I'm at a complete loss. 😩 -
For a small multiplayer mission I want the players to destroy 4 pumps via hold action. When its done there should be smoke emerging from the trigger which i moved into the pump. smoke = "test_EmptyObjectForSmoke" createVehicle (getPos this); I tried this command in the "on activation" box but it doesn't work. I'm not big on scripting so if someone knows a way to overcome this issue i'd be thankful for answers.
-
[SOLVED] eventHandler for opening the parachute
Fastfood4Bigfoot posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi, I need help to get this running. I want to call some code on opening the parachute. I didn't found anything matching in the list: https://community.bistudio.com/wiki/Arma_3:_Event_Handlers. I even tried the GetIn-Handlers because the parachute seems to be handled as a vehicle. Any ideas? Thx in advance ;)- 23 replies
-
- parachute
- eventhandler
-
(and 3 more)
Tagged with:
-
animations Animations not working properly
Jaroslav Verner posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi guys, I have been struggling a lot recently getting animation sequences. For some reason they work in the init but not on the triggers, but if one animation works the other one doesnt. This is what I currently have: bot1 switchMove "Acts_hubTalk_salute1"; bot1 switchMove "Acts_welcomeOnHUB01_AIWalk"; bot1 playMove "Acts_welcomeOnHUB01_AIWalk_1b"; bot1 playMove "Acts_welcomeOnHUB01_AIWalk_1"; bot1 playMove "Acts_welcomeOnHUB01_AIWalk_2"; bot1 playMove "Acts_welcomeOnHUB01_AIWalk_3"; bot1 playMove "Acts_welcomeOnHUB01_AIWalk_4"; bot1 playMove "Acts_welcomeOnHUB01_AIWalk_5"; bot1 playMove "Acts_welcomeOnHUB01_AIWalk_6" before I had the same but I added bot1 switchMove""; after an annimation command for a pause, however it doesnt work. I have tried everything and nothing seems to work. Any suggestions? I want to also loop those animations. Thank you!! -
I'm making a mission where the player can't leave a specified area or they'll get killed. Sounds simple, right? It is, however, I want the player to clear out a specific street without getting sidetracked and trying to clear a street not intended for gameplay, where there's obviously nothing, and a trigger that can be either a square or an elipse makes my goal unachievable.. That's exactly why I'm asking if there's a way to make a trigger has a deformed shape, so that there can be multiple different shapes of different sizes within a single trigger.
-
Apply Special States to Objects Via Trigger
SchmittyWerbenJagermanJensen posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, I am trying to apply special states to a vehicle with a trigger, due to the states being reset to their defaults upon the respawning of a vehicle. Specifically, the Forbid Disembarking state from 3den Enhanced: Forbid Disembarking Description: Crew stays in vehicle even though the vehicle is disabled. Property: ENH_allowCrewInImmobile DefaultValue: false Is there a way to apply this state to any vehicle that enters the affected area of a trigger? I would like it to apply to any vehicle that passes through the trigger regardless of having a variable name. -OR- I am also using a module from MGI Advanced Modules to allow for the vehicles to respawn with the crew members and keep their waypoints. The problem I face is seen when a member of the vehicle bails out and maintains his move, move, cycle waypoints. Then, the vehicle explodes later and respawns. Sometimes, the vehicle will respawn and will not move from its starting position since the waypoints are stuck to the crew member who left earlier. That being said, if there is a way to give orders to units that enter a trigger zone that would be a good workaround. Thanks. -
Hello ARMAtes. I need help with the next problem: _selectm = selectRandom ["rm01","rm02","rm03","rm04"]; _posm = getMarkerPos _selectm; sleep 1; This way I randomly pick what existing marker on the map will be used but I need the full circle to be completed without repeating already used ones. For example, if trigger tgrm_03 will be activated - the area of marker rm03 will be used to spawn some units and due to tgrm_03 being set to "enableSimulation false" after use, it will not be activated if the random system chooses it again accidentally but the script will stop seeking next one so units will not be deployed... What I want is to tell the script to choose only between triggers that are left untouched until I manually set them all to "enableSimulation true" again. Thanks in advance
-
Hi, can someone share a script for delivering an item to the zone. I explain - I need the player to pick up the document and then when he entered the zone (trigger) the mission was completed. ("Item_FileTopSecret") the name of the object.
-
[SOLVED ]Getting a player object with thisList
Ganvai84 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey guys, I have a hard time understanding what thisList or list triggerOne is giving me back as object. The idea is, that when a trigger is activated, it sets the fuel of the car the player is in to 0 (or damages one of its wheels). _list = list tr_fuel1; _vehicle = objectParent (_list select 0); But seems like that what is standing in (_list select 0) is not a player object. So, the noob I am, I check what I get there instead: hint format ["Player: %1", _list select 0]; "Bravo 1-1 Alpha 1: (jan)(s1)" Gives me a lot of stuff in there. The Radio Name, the Players name and the player variable. Is there an elegant way to get the player variable out of this so I can work with it further on? Or is there any kind of way where I can change the returnvalue of (_list select 0) into a player object? Cheers, Jan -
Hi guys, I want a trigger to be activated when the following happens: Gate1 animate ["Door_1_rot", 1] (The Gate opens) I want to use this on a waypoint so that the AI automatically drives inside a checkpoint as soon as the gate opens. I am new to editing and scripting and i have no idea. Please help me guys 🙂
-
Hello, I have been pulling my hair out the last couple of days trying to get this to work and I seem to really be stuck here. I am using JEBUS spawn script and have it where if I capture a place from Opfor then Opfor will spawn in the town over to launch an assault. After a certain time I'd like the assault to be called off but maybe in the future relaunch. In my first trigger activating the assault from AI I have this in the condition: Blufor Present Repeatable "!alive hq1 && This && random 1 < 0.5 && Attack1Trigger" A radio message attached says that Opfor are assaulting. In the second trigger covering the same area: Variable Name: OpForAss1 Blufor PresentRepeatable Condition: this Interval: 10 (For testing purposes) On Act: Attack1Trigger = True; publicVariable "Attack1Trigger"; Timeout: 10 seconds on all 3 inputs Third trigger covering the same area: Blufor Present Repeatable Condition: triggerActivated OpForAss1 Interval: 25 On Act: Attack1Trigger = False; publicVariable "Attack1Trigger"; Countdown: 25 seconds on all 3 inputs Radio message attached saying Opfor is no longer assaulting This does not repeat whenever I use the last trigger to change the variable to false. If I'm going about this completely wrong then by all means, please show me a way that is more efficient. I've been piecing this together the last few days from different threads on the internet over different problems since I try to exhaust my resources before making a thread about it on here. Thanks for any help and sorry in advance if I start asking some basic questions after these responses. Peace
-
how to command a group to move coherence through a defined path
martinmiciciday posted a topic in ARMA 3 - EDEN EDITOR
Hi; I'm actually a beginner in edition Arma 3; my problem is when I define a "move" and "Trigger" for the group, they don't do exactly what I want. for example; they should stay in their position until the "Trigger" act. But they move around, this is not what I want. the second thing is when the "Trigger" acts, they don't have coherence and don't move exactly what I want. Please guide me. -
Hi, I have a little problem with activation/deactivation of triggers. I have 4 triggers named : trigger_1, trigger_2, trigger_3, trigger_4 (they spawn enemies). I want if trigger_1 is activated (once) all other triggers should be disabled for lets say 2 hours and then re-enabled except trigger_1. Then the same for trigger_2, etc. I tried to use trigger deactivation field of trigger_1 to disable the other triggers with enableSimulationGlobal but I should make the trigger repeatable and when I re-enable all triggers (enableSimulationGlobal true) trigger_1 will spawn enemies again which is not my intent. I hope I explained well, really need to solve this ... 😰
- 5 replies
-
- trigger
- simulation
-
(and 1 more)
Tagged with:
-
Hello everyone, first time poster here, although I've been lurking and learning from other experienced community members. I have made a single-player mission which I'm pretty happy about the outcome. An icing on the cake would be to add radio chat between 3 entities - Player, Highway (AI) and Tower (AI). The mission is a carrier operation with 6 tasks - Take-off, Intercept Enemy Fighters, Intercept Enemy Helicopters, Destroy Anti-Air, Destroy Artillery, Land. I have created the text I wish to use in the mission but I simply have no clue how to make it appear after a certain thing has happened f.e when I fire an AMRAAM I want my guy to say "Fox Three" and when a missile hits - "Splash One!". Same thing with a BIM-9X but "Fox Two" instead as that is the correct term since it's an IR missile. List of enemy combatants: 4x To-201 Shikra (Bandit1/2/3/4) 1x CH-49 Mohawk (Condor) 1x WY-55 Hellcat (Vulture) 4x ZSU-39 Tigris (AA1/2/3/4) 3x 2S9 Sochor (SPG1/2/3) I tried compiling a description.ext script (note: I don't have actual sound files yet, I'd appreciate it if I can get an idea what Text-to-Speech I can use to make myself audio files and then convert to .ogg): And a radio.sqf script "Sleep 4" is short, it's a placeholder. I hope you can understand my query. Sorry for this really long post, TLDR: I need to have radio chat to be activated after doing a certain thing.
- 5 replies
-
- radio chat
- script
-
(and 2 more)
Tagged with:
-
spawn [SOLVED] spawn helicopter, see if player is inside thru trigger
Play3r posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi all i have this script i use to spawn a heli, and it land at my location like planed But how do i make so that a trigger fires when i get inside the heli. i have tried with COND: BOB in P3REndHeli. also COND: BOB in EndHeli. but no joy, anyone got some ideas. Cheers Play3r private _P3REndHeli = createVehicle ["B_Heli_Transport_03_F", getMarkerPos "HeliSpawn", [], 0, "FLY"]; createVehicleCrew _P3REndHeli; _P3REndHeli setVehicleVarName "EndHeli"; systemChat str _P3REndHeli; private _LandingPad = "Land_HelipadEmpty_F" createVehicle position player; _waypointPickup = group driver _P3REndHeli addWaypoint [position _LandingPad,0]; _waypointPickup setWaypointType "SCRIPTED"; _waypointPickup setWaypointScript "A3\functions_f\waypoints\fn_wpLand.sqf"; -
scripting Apply setPylonLoadout to a Helicopter within a Trigger without giving the Helicopter/s a variable name.
XallZall-39dbbb756b7e13ec posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello BI community, I am as green as it gets with these forums, with that said I did search for relevant topics, without success so apologies in advance if I overseen a similar topic in advance, but honestly I don't even know how to query best what I am searching for. I will describe what I am hoping to achieve: I have an object, it can be anything, but in this case its a Crate. I also have a Trigger and a helicopter. The concept is as follows: The Helicopter is parked on and in the trigger. Any player can go to the box and use an addAction menu to select a Pylon Loadout for said helicopter. The addAction menu then activates the trigger to execute a code to first wipe any existing pylons and then give them the new pylons. The problem: I managed to get pretty much everything to work, expect that I don't know how to apply the code without giving the Helicopter a Variable Name or using "vehicle player". I would like to trigger to simply apply the commands to the helicopter without me specifying a Variable name, as I wish to make this trigger universal to every helicopter that lands on it, and dynamically, so if new helicopters happens to be created/purchased, that they can also use and take advantage of the feature. The code (Without a Trigger and Wipe in this case) ChangeTime = 5; this addAction ["Plyon (X)", { Delayer =[] spawn { hint format ["Changing Plyons... ETA: %1" , ChangeTime]; sleep ChangeTime; vehicle player setPylonLoadout [1, "rhs_mag_b8v20a_s8kom"]; vehicle player setPylonLoadout [2, "rhs_mag_b8v20a_s8kom"]; vehicle player setPylonLoadout [3, "rhs_mag_b8v20a_s8df"]; vehicle player setPylonLoadout [4, "rhs_mag_b8v20a_s8df"]; vehicle player setPylonLoadout [5, "rhs_mag_9M120M_Mi24_2x"]; vehicle player setPylonLoadout [6, "rhs_mag_9M120M_Mi24_2x"]; vehicle player setPylonLoadout [7, "rhs_ASO2_CMFlare_Chaff_Magazine_x4"]; hint "Plyon reconfiguration completed."; }, }]; This code will work but only if its activated and then the player goes into the helicopter, and while I am not certain, I believe it would probably also change the pylons for other helicopters that happen to be piloted by a human. Stuff that I tried: I tried using this, thislist and various other means inside the trigger but of course those target the trigger itself or create an array and setPylonLoadout needs a Object not an array. Question and TL/DR: Is there a way to apply the pylons within the trigger without given the helicopters any Variable Names? Thanks in advance and apologies if this was already answered somewhere before. -
Is there a way to move an object with trigger? For example, I want an object to change its coordinates when a trigger is activated. And in this trigger will be the coordinates where this object will be moved.
- 2 replies
-
- eden editor
- trigger
-
(and 2 more)
Tagged with:
-
So, I'm currently working on a mission with a fixed object to access the arsenal (ACE). This arsenal however should only be accessible to the pilots role to deliever logistics. Unfortunately there are some players in the group that won't listen to strict rules, saying that no one shall go there and access the arsenal. So I was wondering if there is a way or a script to either: a) Kill any player (except of the pilots and the zeus), force them to respawn, when they step into a trigger area or b) show only the zeus via a hint that Player1 has entered the trigger area to which the zeus can react himself. I'd prefer the killing method however. If someone has an idea I'd be happy to know and hear about it. THX
-
I can't for the life of me figure out how to set a distance condition on the 3den Enhanced add actions. I don't want players to be able to see it from miles away as long as they are scrolling. I know it should be ran on "condition show" but I don't know exactly what to put there: Any help would be much appreciated. Thanks
-
sqf Activating a trigger through an SQF
Captinlarry posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
https://gyazo.com/641c0226cab80eac03d04a2c5fed444b Above is an SS of my notepad. Trying to activate a trigger through my SQF with triggerActivated TurboBomb; Below are the settings of that trigger. https://gyazo.com/ce586674451bc34a810bb59350bb9817 I tried triggering the E2 setDamage [1, true]; from the sqf itself but that didnt seem to work. -
Need help with a little code (Trigger)
Jonas Coper Steuerfahndung posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, Just starting new with scripting and don't understand why this code doesn't work: File is executed but trigger is not activated: this AddAction ["Repair vehicle", "fixVehicle.sqf",{myCustomActionActivation = true; (_this select 0) removeaction (_this select 2)}]; Trigger is activated but file is not executed: {"this addAction [ ""Repair vehicle",{myCustomActionActivation = true; (_this select 0) removeaction (_this select 2)}, "fixVehicle.sqf"]; I can either just activate the trigger or just execute the file. Only one of the two ever works Thanks for the help -
Hello, everyone. I've stumbled upon this trouble. Trigger with condition {!alive BombCluster_03_UXO1_F} count thislist < 1 doesn't seem to activate. What and where did i go wrong? Tried putting it with quotes, yet doesn't seem to work. Repeatable also doesn't help.