Jump to content

Binding a key to a custom argument


dimitriov

Recommended Posts

Hi guys ;)

 

Currently working on this vehicle for the Frenchpack : http://www.checksix-forums.com/viewtopic.php?f=432&t=202704&start=225

 

I would need some help from wise men here. I'd like to be able, using a custom key, to set the value of an ARG on let's say for the example 100%.

 

I'd like the player to be able to use the dampener adjustment system. If you can help me, you're welcome :)

 

Thank you ;)

 

Nicolas

Link to comment
Share on other sites

You could go about ways creating a custom iCommand. That or use an iCommand that wont be used with the mod's purpose.

 

You can then use a function to set the argument, ie.

 

set_aircraft_draw_argument_value(number, state)

 

Replace number as your argument number and state between 0 or 1. In this case, 100% will be 1. To get the state, just divide percent value by 100.

 

EDIT: As for your dampener system, I am not quite sure. I have never coded any mod base for ground assets as I do not have Combined Arms for what you want to control them. I hope I was able to help!


Edited by Sirius
Link to comment
Share on other sites

  • Recently Browsing   0 members

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