![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Ace of the Deep
![]() Join Date: Apr 2007
Location: on patrol
Posts: 1,035
Downloads: 40
Uploads: 0
|
![]()
I'm trying to find a way to dive to a preset depth by pressing a key. For example, pressing Shift-D brings the boat at 50m.
I looked at commands.cfg and found this entry: [Cmd190] Name=Set_depth Ctxt=1 Str=4427 Maybe this is the way to do it, but it's far beyond my limited modding knowledge. Anyone knows how (and if) can it be done? ![]()
__________________
|
![]() |
![]() |
![]() |
#2 |
Ocean Warrior
![]() Join Date: Apr 2005
Location: Carmel, Indiana
Posts: 3,250
Downloads: 320
Uploads: 11
|
![]()
This may not work, but try this:
In the config file write: [Cmd190] Name=Set_depth Ctxt=1 Str=4427 Key0=0x0D,c,"Enter" In the menu_en file write: ;4427=New depth %.0f meters! 4427=New depth X.0f meters! where x= the depth you want. You can then use SetKeys to change the "enter" command to whatever key you want, or you can leave it as "enter" since this key is not used in GWX2.1. If this works or not, please post the result. Of course, back up the files first before you mess with them.
__________________
Irish1958 ![]() |
![]() |
![]() |
![]() |
#3 |
Ace of the Deep
![]() Join Date: Apr 2007
Location: on patrol
Posts: 1,035
Downloads: 40
Uploads: 0
|
![]()
Thanks for your help, but it doesn't work.
![]() When I press the key, boat surfaces. And when I set the depth in ordinary way, using the dial, the message "New depth 50.0f meters!" appears. Obviously, the Set_depth is conected to the depth dial.
__________________
|
![]() |
![]() |
![]() |
|
|