Hoover Posted September 1, 2019 Share Posted September 1, 2019 Hi, If someone would be so nice and tell me what I'm doing wrong. I try to achieve to a repare a damaged main gun when platoon 1/A enters a custom region. No luck til now, the gun remains damaged... What I did so far. 1.) Unit 1A>options damage if this unit is 1/A AND mission time > 0:00 (screenshot #1) 2.) Unit 1A>options repare if 1/A is in region 5 (screenshot #2) 3.) Triggered an event when Unit 1/A is in region 5 release of the trigger ist confirmed by reading the trigger message (screenshot #3) Cheers 0 Quote Link to comment Share on other sites More sharing options...
Bond_Villian Posted September 1, 2019 Share Posted September 1, 2019 (edited) The damage if condition is always true (time greater than o) so the gun stays damaged. Remove the time condition. Or simplify further by just using "damage" instead of "damage if" (if suitable). I dont understand what the 3rd part is supposed to achieve...? Edited September 1, 2019 by Bond_Villian 0 Quote Link to comment Share on other sites More sharing options...
Jartsev Posted September 1, 2019 Share Posted September 1, 2019 Damage will be continuously applied, because condition 'mission time >0:00" remains true. So it would be better to create an event, and use damage criteria 'Damage if: event ... is true' a small transparent region, and use damage criteria 'Damage if: Unit XXX is in Region YYY" 0 Quote Link to comment Share on other sites More sharing options...
Hoover Posted September 1, 2019 Author Share Posted September 1, 2019 2 hours ago, Bond_Villian said: I dont understand what the 3rd part is supposed to achieve...? Hi Bond_Villian, Thanks for your help. My intention is, that if unit 1/A is in region5 the red event 1 is triggered. The Repair if watches for this event to occur and repairs the unit a soon as it happens. 2 hours ago, Jartsev said: Damage will be continuously applied, because condition 'mission time >0:00" remains true. So it would be better to create an event, and use damage criteria 'Damage if: event ... is true' a small transparent region, and use damage criteria 'Damage if: Unit XXX is in Region YYY" Hi Jartsev, Thanks for your help. It's easy to get lost in such an enormous and capable steering system with triggers, events and conditions. I read the manual and the sentence, I highighted in green, confused me a bit. "Damage / Damage if...: These submenus provide the ability to specify starting damages or damages that will occur if certain conditions are met (through the use of Boolean logic). The damages listed in the two submenus are dependent on the specific vehicle. Note: Damages set with the option Damage can never be repaired. If the affected unit is supposed to be repaired at some point during the exercise, use Damage, if… and set the condition to something like Mission time > 0:00. Repair if...: This submenu provides the ability to specify damages that will be repaired if certain conditions are met (through the use of Boolean logic). Note that some types of damage will automatically be repaired during the Execution Phase (e.g. track damage), and some will not. This feature allows special conditions to be set to speed up repair or to repair damages that cannot be repaired by default." 0 Quote Link to comment Share on other sites More sharing options...
Jartsev Posted September 1, 2019 Share Posted September 1, 2019 3 minutes ago, Hoover said: If the affected unit is supposed to be repaired at some point during the exercise, use Damage, if… and set the condition to something like Mission time > 0:00. This feature doesn't work now, and damage is reset after repair 0 Quote Link to comment Share on other sites More sharing options...
Hoover Posted September 1, 2019 Author Share Posted September 1, 2019 1 minute ago, Jartsev said: This feature doesn't work now, and damage is reset after repair I see, thanks. RTFM is not always the right choice. 😉 0 Quote Link to comment Share on other sites More sharing options...
Members Ssnake Posted September 1, 2019 Members Share Posted September 1, 2019 The focus of that statement you quoted was intended to be on the distinction between "Damage" and "Damage, if...", not on the condition "mission time > 0:00" or similar. 0 Quote Link to comment Share on other sites More sharing options...
Bond_Villian Posted September 1, 2019 Share Posted September 1, 2019 7 hours ago, Hoover said: . My intention is, that if unit 1/A is in region5 the red event 1 is triggered. The Repair if watches for this event to occur and repairs the unit a soon as it happens. Ok, that event is not needed. You could change the damage if condition to be 'mission time is less than 00 05 or similar. This condition is no longer true after 5 seconds 0 Quote Link to comment Share on other sites More sharing options...
Hoover Posted September 2, 2019 Author Share Posted September 2, 2019 6 hours ago, Bond_Villian said: damage if condition to be 'mission time is less than 00 05 or similar. This condition is no longer true after 5 seconds Thank You Bond_Villiain, I will try it. It seems that my logical thinking sucks.🙈 0 Quote Link to comment Share on other sites More sharing options...
Members Ssnake Posted September 2, 2019 Members Share Posted September 2, 2019 18 hours ago, Hoover said: 1.) Unit 1A>options damage if this unit is 1/A AND mission time > 0:00 (screenshot #1) Since you're applying the condition directly to a unit (1/A), its identity is always a given (it can never be anything but 1/A, unless you change its designation in the Mission Editor itself). So the first conditional won't do anything (unless you change the unit's designation later, in which case it will prevent everything). Recommendation: Don't use it. 0 Quote Link to comment Share on other sites More sharing options...
Hoover Posted September 2, 2019 Author Share Posted September 2, 2019 40 minutes ago, Ssnake said: Recommendation: Don't use it. Good morning Ssnake, Thank you for your help. Will follow your recommendation... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.