Originally Posted by
Aboriginal
I don't understand the different between permanent? and keydown? commands, and how you got that console box to show; it didn't appear when i inject your dll into my exe.
Can you give us an example of what to enter into the lua file for my binds or at least for the first two?:
bind "1" "cc_enter_rochest_from_colhen"
bind "2" "cc_enter_colhen_from_rochest"
bind "3" "changemap_to_next_random_sector"
bind "4" "god"
bind "5" "ohk"
bind "6" "host_timescale 3"
bind "7" "host_timescale 1"
bind "8" "cc_set_sub_weapon javelin_lvl2 999"
bind "9" "cc_send_start_game_message"
bind "0" "cc_set_sub_weapon sticky_bomb_lvl1 999"
bind "y" "cc_change_figure_height 1"
bind "u" "cc_change_figure_height 2500"
bind "t" "nuke"
bind "g" "cc_shiplist_ui"
bind "h" "show_mini_shop"
bind "j" "cc_mailbox_ui"
I'm not being lazy, I'm really trying to make out what this is.
I'll show you
bind "g" "cc_shiplist_ui"
bind "h" "show_mini_shop"
Check List of Virtual Key Codes for the key codes
Code:
--This is for the G key
for keyDown_Press(0x47)~=0 then
cmd("cc_shiplist_ui")
end
--This is for the H key
for keyDown_Press(0x48)~=0 then
cmd("show_mini_shop")
end
Also a hint if you're trying to develop a script that works for you, PLAY IN WINDOWED.