Jump to content

Having a go at scripting. Work in progress.


Recommended Posts

Posted (edited)

Hi all.

 

Bought the Warthog Throttle.

 

And I am having a go at scripting, its pretty fun. Just reading the manual atm.

 

My plan is to make a working script for the Harrier. good times :)

 

 

 

One question about the MapAxis optional parameters.

 

with the slew axis I wrote this :

 

MapAxis(&Throttle, SCX, DX_XROT_AXIS, MAP_RELATIVE);

MapAxis(&Throttle, SCY, DX_YROT_AXIS, MAP_RELATIVE);

 

But when I test it in the device analyzer, they return to the center. I thought they were supposed to stay at the maximum or minimum value reached until you change your movement direction.

 

That is what the manual says anyway, what am I doing wrong?

 

Solved it, it should be this:

 

MapAxis(&Throttle, SCX, DX_XROT_AXIS, AXIS_NORMAL, MAP_RELATIVE);

MapAxis(&Throttle, SCY, DX_YROT_AXIS, AXIS_NORMAL, MAP_RELATIVE);

 

I was missing one parameter

Edited by Kevlon

[sIGPIC][/sIGPIC]

Posted

New problem.

 

How do I get the EXEC to run on line 49 here? How can I combine it with the CHAIN?

 

It's not setting the value on the flag.

script.thumb.PNG.dde67848df4b436ab6bff9c8941c3775.PNG

[sIGPIC][/sIGPIC]

  • Recently Browsing   0 members

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