FLAGs, just a nightmare! - Page 4 - ED Forums
 


Notices

Reply
 
Thread Tools Display Modes
Old 03-14-2020, 12:30 PM   #31
feefifofum
3rd Party Developer
 
feefifofum's Avatar
 
Join Date: Jan 2015
Location: USA
Posts: 3,248
Default

Why do you insist on using flags? Just push the AI state or ROE directly when the conditions are met.

You are never setting the flags back to false, so they only work once. You must reset the flag values upon activating the condition if you want to use them more than once. I.E. AI ON and FLAG 1 OFF, AI OFF and FLAG 2 OFF.
feefifofum is offline   Reply With Quote
Old 03-14-2020, 12:38 PM   #32
vctpil
Member
 
Join Date: Mar 2010
Posts: 338
Default

"Why do you insist on using flags?" Because I cannot use a random condition without flag, as far as I know.

Switched Condition > FA18 inside green zone > Flag 1 On
Switched Condition > FA18 outside green zone > Flag 2 On
Switched Condition > Flag 1 is true > SAM AI On - FLAG 1 OFF
Switched Condition > Flag 2 is true > SAM AI Off - FLAG 2 OFF

Like that ? Still not working, the SAM still activate toot early.
__________________
Intel(R) Core(TM) III Xeon Duo CPU E8600 @ 3.33GHz - 4 Mo RAM - GeForce 1080TI - Monitor DELL E190S - SB Audigy - HOTAS Warthog

Last edited by vctpil; 03-14-2020 at 12:43 PM.
vctpil is offline   Reply With Quote
Old 03-14-2020, 12:42 PM   #33
feefifofum
3rd Party Developer
 
feefifofum's Avatar
 
Join Date: Jan 2015
Location: USA
Posts: 3,248
Default

There is no random element to the aircraft entering and exiting the unit's WEZ...just look for UNIT INSIDE ZONE and then push your AI or ROE state directly. You are gaining nothing by using a flag in this instance and are clearly confusing yourself.
feefifofum is offline   Reply With Quote
Old 03-14-2020, 12:50 PM   #34
vctpil
Member
 
Join Date: Mar 2010
Posts: 338
Default

This is what I am trying to do : https://forums.eagle.ru/showpost.php...0&postcount=13

Instead of the time delay, I would like to randomize the SAM activation.

There is different possibility from 1 to 4, with or without flag. At the moment I try to insert the point 5, nothing is working correctly.
__________________
Intel(R) Core(TM) III Xeon Duo CPU E8600 @ 3.33GHz - 4 Mo RAM - GeForce 1080TI - Monitor DELL E190S - SB Audigy - HOTAS Warthog
vctpil is offline   Reply With Quote
Old 03-14-2020, 01:02 PM   #35
Pikey
Veteran
 
Pikey's Avatar
 
Join Date: Sep 2009
Location: Reading, UK (GMT)
Posts: 4,333
Default

It was at this point some years back I decided scripting was easier, and I'm still happy with the investment! Looking at posts like this with triggers and flags makes my head hurt!
I still use TIME SINCE FLAG occasionally though and you can add that into some of your conditions to set delays.
__________________
___________________________________________________________________________
SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING * PLAYLIST
===========
Pikey is offline   Reply With Quote
Old 03-14-2020, 03:22 PM   #36
vctpil
Member
 
Join Date: Mar 2010
Posts: 338
Default

Here's the last .miz in attached.

If you test it, everything is working fine, unless that if you fire the HARM and it is destroyed, the SAM will not re-activate again.

If someone can have a look, please.

Thank you.
Attached Files
File Type: miz Test 2.miz (9.4 KB, 14 views)
__________________
Intel(R) Core(TM) III Xeon Duo CPU E8600 @ 3.33GHz - 4 Mo RAM - GeForce 1080TI - Monitor DELL E190S - SB Audigy - HOTAS Warthog

Last edited by vctpil; 03-14-2020 at 04:33 PM.
vctpil is offline   Reply With Quote
Old 03-15-2020, 06:50 AM   #38
vctpil
Member
 
Join Date: Mar 2010
Posts: 338
Default

Hi,

Wow, that's amazing, the way you are trying to solve the problem.

The thing is the SAM detect the aircraft when entering its detection zone, not from the green zone. The first idea is to delay the activation of the SAM.

This part is working with what I did. I am going to try with the missile only to see if this part is working correctly.

Thanks a lot.
__________________
Intel(R) Core(TM) III Xeon Duo CPU E8600 @ 3.33GHz - 4 Mo RAM - GeForce 1080TI - Monitor DELL E190S - SB Audigy - HOTAS Warthog
vctpil is offline   Reply With Quote
Old 03-15-2020, 07:02 AM   #39
vctpil
Member
 
Join Date: Mar 2010
Posts: 338
Default

I tried this one, just to concentrate on THE problem (no more green zone to de-activate/activate the SAM) :

SWITCHED CONDITION (AGM88 inside zone) > MISSILE IN ZONE (AGM-88, 1, Red zone) > UNIT AI OFF (SA6)

1. The SAM activate when the aircraft is entering its detection zone (the yellow circle)
2. I fire a HARM and the SAM de-activate when the missile is entering the red zone
3. When the missile is destroyed, the SAM DOES NOT RE-ACTIVATE

I don't understand why the SAM does not re-activate because the conditions are filled.
__________________
Intel(R) Core(TM) III Xeon Duo CPU E8600 @ 3.33GHz - 4 Mo RAM - GeForce 1080TI - Monitor DELL E190S - SB Audigy - HOTAS Warthog
vctpil is offline   Reply With Quote
Old 03-15-2020, 07:20 AM   #40
vctpil
Member
 
Join Date: Mar 2010
Posts: 338
Default

Now this one :

SWITCHED CONDITION (AGM88 inside zone) > MISSILE IN ZONE (AGM-88, 1, Red zone) > UNIT AI OFF (SA6) - FLAG ON (1)
SWITCHED CONDITION (AGM88 outside zone) > TIME SINCE FLAG (1, 15) > UNIT AI ON (SA6) - FLAG OFF (1)

1. The SAM activate when the aircraft is entering its detection zone (the yellow circle)
2. I fire a HARM and the SAM de-activate when the missile is entering the red zone
3. The SAM re-activate 15 seconds after the HARM has enter the red zone

Playing with the timing and the size of the trigger zone are apparently the only solutions to de-activate/activate the SAM, because there is no MISSILE OUTSIDE ZONE option.
__________________
Intel(R) Core(TM) III Xeon Duo CPU E8600 @ 3.33GHz - 4 Mo RAM - GeForce 1080TI - Monitor DELL E190S - SB Audigy - HOTAS Warthog

Last edited by vctpil; 03-15-2020 at 09:17 AM.
vctpil is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 11:00 PM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.