Northstar98 Posted September 27, 2017 Posted September 27, 2017 Hi Guys, Sorry if this is a bit of a stupid question but I was wondering if anybody could assist me with a triggered action. Basically what I want to do is when a unit's engine has shutdown, in a specific place (using a trigger zone), trigger an action (in my case it's just a simple transmit message command). Now looking through the list of conditions for triggered actions there is no condition relating to a unit's engine being shutdown so presumably I have to use the lua precedate condition, except I've no idea how to set it up properly. I've looked around on the wiki and some other threads but I remain very much done confuzzled by the whole thing :whacko: so any help would be greatly appreciated. Cheers! Ollie Modules I own: F-14A/B, F-4E, Mi-24P, AJS 37, AV-8B N/A, F-5E-3, MiG-21bis, F-16CM, F/A-18C, Supercarrier, Mi-8MTV2, UH-1H, Mirage 2000C, FC3, MiG-15bis, Ka-50, A-10C (+ A-10C II), P-47D, P-51D, C-101, Yak-52, WWII Assets, CA, NS430, Hawk. Terrains I own: South Atlantic, Syria, The Channel, SoH/PG, Marianas. System: GIGABYTE B650 AORUS ELITE AX, AMD Ryzen 5 7600, Corsair Vengeance DDR5-5200 32 GB, NVIDIA GeForce RTX 4070S FE, Western Digital Black SN850X 1 TB (DCS dedicated) & 2 TB NVMe SSDs, Corsair RM850X 850 W, NZXT H7 Flow, MSI G274CV. Peripherals: VKB Gunfighter Mk.II w. MCG Pro, MFG Crosswind V3 Graphite, Logitech Extreme 3D Pro.
feefifofum Posted September 28, 2017 Posted September 28, 2017 Hey Ollie...not quite what you're looking for but a combination of UNIT INSIDE ZONE and UNIT'S SPEED LOWER THAN might do the trick? 1 THE GEORGIAN WAR - OFFICIAL F-15C DLC
Northstar98 Posted September 28, 2017 Author Posted September 28, 2017 (edited) Hey Ollie...not quite what you're looking for but a combination of UNIT INSIDE ZONE and UNIT'S SPEED LOWER THAN might do the trick? Thankyou for the reply! Essentially, I'm trying to 'jury rig' aircraft parking detection, I've got a trigger zone set-up where I want to the aircraft to park. To stop the event going off at the start (which it will) I need another condition, preferably when the aircraft has shutdown it's engine. Hopefully some sense to madness will come when I try to explain the mission. I've set-up a mission with a flight of 2 MiG-15Bis with a total of 3 waypoints (excluding takeoff and landing) for navigation practice and practice using the ARK-5. The aircraft will take-off from Gelendzhik and head to the first waypoint, when at the first waypoint flag 1 becomes active, at the next the value of flag 1 will increase by 1 the same thing occurs at the last waypoint before landing. The value of flag 1 now =3 (assuming when a flag is on, it's value =1) The aircraft will return to Gelendzhik, taxi to the parking spot where they started and shutdown. When they've shutdown I'd like for flag 1 to increase it's value by 1 again. Now the value of flag 1 =4. The mission objective is complete when the value of flag 1 =4. It's just a simple way of checking to see if all objectives (fly to each waypoint, land, taxi to parking and shutdown) are met. In order for the action FLAG INCREASE to trigger when I've parked, there is a small trigger zone place at the parking spot, the problem I had with just using the UNIT INSIDE ZONE and UNIT's SPEED LOWER THAN conditions is that it will trigger whenever the specific unit is in that zone while not moving, which it will be at mission start. I could get around it by using a TIME MORE THAN condition but I'd rather not be time constrained just out of personal preference (which, yeah my personal preference seems to make life difficult doesn't it :lol:) Even better, it would be great if the trigger couldn't be activated until I had taken off and landed at Gelendzhik, though not sure how to do that either. I just wondered if there was a way I could get the unit shutdown event (http://wiki.hoggit.us/view/DCS_event_engine_shutdown) in order to trigger the action. So when the unit is inside the zone and it's engine has been shutdown, trigger the action. I just hope that method doesn't also trigger at mission start because the aircraft starts cold at the parking spot, inside the trigger zone. Hopefully that maybe makes some sense? It's all a bit rather complicated and I'm well out of my depth. I know just setting a UNIT INSIDE ZONE, UNIT'S SPEED LESS THAN and then TIME MORE THAN would make life a heck of a lot simpler, I just wondered if I can do the same thing. EDIT: I have been a fool, since I'm using flags for waypoints I can make it so the action won't go off unless flag 1 is a specific value, this means it won't go off at the start of the mission. However, if anybody knows how to use the shutdown event this will make the conditions for the action totally watertight. Edited September 28, 2017 by Northstar98 Modules I own: F-14A/B, F-4E, Mi-24P, AJS 37, AV-8B N/A, F-5E-3, MiG-21bis, F-16CM, F/A-18C, Supercarrier, Mi-8MTV2, UH-1H, Mirage 2000C, FC3, MiG-15bis, Ka-50, A-10C (+ A-10C II), P-47D, P-51D, C-101, Yak-52, WWII Assets, CA, NS430, Hawk. Terrains I own: South Atlantic, Syria, The Channel, SoH/PG, Marianas. System: GIGABYTE B650 AORUS ELITE AX, AMD Ryzen 5 7600, Corsair Vengeance DDR5-5200 32 GB, NVIDIA GeForce RTX 4070S FE, Western Digital Black SN850X 1 TB (DCS dedicated) & 2 TB NVMe SSDs, Corsair RM850X 850 W, NZXT H7 Flow, MSI G274CV. Peripherals: VKB Gunfighter Mk.II w. MCG Pro, MFG Crosswind V3 Graphite, Logitech Extreme 3D Pro.
feefifofum Posted September 28, 2017 Posted September 28, 2017 Gotcha. In that case, same plan, but add a third condition: UNIT INSIDE ZONE (mig15, parking) UNIT'S SPEED LOWER THAN (mig15, 1) FLAG IS MORE (1,2) Now the parking event won't trigger until they've flown the waypoints, because flag 1's value won't have increased until they leave the field. THE GEORGIAN WAR - OFFICIAL F-15C DLC
feefifofum Posted September 28, 2017 Posted September 28, 2017 Ha! Sounds like you got there as I was typing. :) THE GEORGIAN WAR - OFFICIAL F-15C DLC
Northstar98 Posted September 28, 2017 Author Posted September 28, 2017 Well it solves the issue of getting this specific action not to go off when I don't want it, but if anybody wants to chip in with how to get the engine shutdown event to work (if it's indeed possible) they can. Ha! Sounds like you got there as I was typing. :) It seems I did :thumbup: Thankyou for your support! Modules I own: F-14A/B, F-4E, Mi-24P, AJS 37, AV-8B N/A, F-5E-3, MiG-21bis, F-16CM, F/A-18C, Supercarrier, Mi-8MTV2, UH-1H, Mirage 2000C, FC3, MiG-15bis, Ka-50, A-10C (+ A-10C II), P-47D, P-51D, C-101, Yak-52, WWII Assets, CA, NS430, Hawk. Terrains I own: South Atlantic, Syria, The Channel, SoH/PG, Marianas. System: GIGABYTE B650 AORUS ELITE AX, AMD Ryzen 5 7600, Corsair Vengeance DDR5-5200 32 GB, NVIDIA GeForce RTX 4070S FE, Western Digital Black SN850X 1 TB (DCS dedicated) & 2 TB NVMe SSDs, Corsair RM850X 850 W, NZXT H7 Flow, MSI G274CV. Peripherals: VKB Gunfighter Mk.II w. MCG Pro, MFG Crosswind V3 Graphite, Logitech Extreme 3D Pro.
feefifofum Posted September 28, 2017 Posted September 28, 2017 It should be possible, but you'll need to jump into the wild world of .lua; I believe MiST has a flag function (I want to say mist.UserFlagFunc or something like that) that you can tie into any SSE event...not sure if you can do it without the additional framework. THE GEORGIAN WAR - OFFICIAL F-15C DLC
Recommended Posts