Jump to content

Recommended Posts

Posted

I want to trigger an event based on F-16 gear down using x: cockpit argument in range...

Gear is 361 or 362 I think from my G:\DCS World\Mods\aircraft\F-16C\Cockpit\Scripts\clickabledata.lua

But... what are the relevant min / max values related to gear down?

Many thanks in advance

Posted

Max should be 1 and min is either - 1 or 0. You can check it in the modelviewer and then move the correct argument slider and read the value from it. 

  • Thanks 1
Posted

Model viewer is very interesting!

 

Unfortunately the \DCS World\Mods\aircraft\F-16C\Cockpit\Scripts\clickabledata.lua doesn't seem to correspond with the arguments in Model Viewer.  For example ARG117 is the right gear wheel animation in model viewer but 117 doesn't exist in the clickabledata.lua file, also gear animation is from 361 in clickabledata.lua but 361  / 362 in Model Viewer reports as unused?

I am aware that this query is pretty niche!

Posted
4 hours ago, buceador said:

I want to trigger an event based on F-16 gear down using x: cockpit argument in range...

Gear is 361 or 362 I think from my G:\DCS World\Mods\aircraft\F-16C\Cockpit\Scripts\clickabledata.lua

But... what are the relevant min / max values related to gear down?

 

Rather than checking the handle position, its better to check the actual gear status, using the parameters:

BASE_SENSOR_LEFT_GEAR_DOWN
BASE_SENSOR_NOSE_GEAR_DOWN
BASE_SENSOR_RIGHT_GEAR_DOWN

This parameter is 1 when the gear is down, 0 when its fully up. Use with the X:COCKPIT PARAM IN RANGE

 

 

  • Thanks 1

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted (edited)
2 hours ago, buceador said:

Model viewer is very interesting!

 

Unfortunately the \DCS World\Mods\aircraft\F-16C\Cockpit\Scripts\clickabledata.lua doesn't seem to correspond with the arguments in Model Viewer.  For example ARG117 is the right gear wheel animation in model viewer but 117 doesn't exist in the clickabledata.lua file, also gear animation is from 361 in clickabledata.lua but 361  / 362 in Model Viewer reports as unused?

I am aware that this query is pretty niche!

Your issue is because you have mixed up the arguments for the internal, cockpit model with the one of the external model. You need to open the cockpit model if you want to see the animations from the cockpit. Or at least I assume thats your issue because the argument you reported does match with the one of the gear handle.

If you do this you will see the gear handle is argument 362 and goes from 0 to +1.

hNUOiQr.png

Edited by razo+r
  • Thanks 2
  • Recently Browsing   0 members

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