Jump to content

Need help from a Cockpit Parameter Guru


Recommended Posts

I'm trying to activate a group (group is called AFAC) only when the player successfully refuels. I created the following trigger:

 

TRIGGER

TYPE: 2 CONTINUOUS

NAME:

EVENT: ON REFUEL

 

CONDITION

TYPE: X: COCKPIT PARAM EQUAL TO

PARAM: FUEL-QTY-1000

VALUE: 9

 

ACTION

ACTION: GROUP ACTIVATE

GROUP: AFAC

 

I can't seem to get it to work. I think my problem is that I've got the wrong PARAM. I looked at the word document that has all of the cockpit arguments, but don't know which column in word file to reference:

 

Meaning = Fuel QTY Indicator - digital readout, 1000.0 lb

Arg num = 91

Clickable element geometry name = FUEL-QTY-1000

 

I thought it would be FUEL-QTY-1000? When I'm done refueling I end up with 9400 lbs of fuel, which is why I used a value of "9" in the condition statement. I start mission with around 5500 lbs.

 

I also created a message to all action to eliminate any possible problem with the AFAC group ( I set AFAC group to start 20 hours later than mission start time). The group doesn't activate, and I never get the text message.

 

Any help would be greatly appreciated!

Link to comment
Share on other sites

Maybe try removing the "On Refuel" event? You're already detecting, or attempting to detect, when the fuel gauge increases... only two ways to do that.

 

For trouble shooting, you could make two separate triggers, a switched "on refuel" event trigger, with conditions of random(100), and actions of Message to all ("refuel event detected') and a similar fuel gauge based trigger that plays some random sound. That way, if they trigger simultaneously, you can tell. With two testing triggers like that, you'll be able to figure out when these triggers are working.

 

As far as events... as far as I know, the event-based triggers really are their own conditions too. Like On Refuel, if I had to guess, goes true either for one trigger cycle after "contact" or continuously while contacting. I donno. But I think that's how they work. I haven't seen the events triggers clearly explained yet, and I haven't had the need to use any yet. So a pure, "On Refuel" trigger might be just Once/Switched/Continuous, Event(On Refuel)->Random(100)->Do Action

Intelligent discourse can only begin with the honest admission of your own fallibility.

Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/

Lua scripts and mods:

MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616

Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979

Now includes remote server administration tools for kicking, banning, loading missions, etc.

Link to comment
Share on other sites

Speed--thanks for the tips. While following your troubleshooting advice, I figured it out. See solution below. FYI-- the "ON REFUEL" Event will trigger when you actually get a connection to the tanker. The "ON REFUEL STOP" will trigger when there is a disconnect from tanker. So basically with the example below, the system will evaluate the second digit of the fuel digital readout for a value of 9 everytime the pilot disconnects from tanker. If the pilot successfully refuels he will have 09400 lbs of fuel, which will then trigger the activation of the AFAC.

 

If they can't refuel, they get no AFAC :joystick:

 

TRIGGER

TYPE: 2 CONTINUOUS

NAME:

EVENT: ON REFUEL STOP

 

CONDITION

TYPE: X: COCKPIT ARGUMENT IN RANGE

argument: 91

MIN: 0.9

MAX:1

 

ACTION

ACTION: GROUP ACTIVATE

GROUP: AFAC


Edited by BBQ
MAX value had to be 1, not 0.9
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...