1 |
I'm
glad
you
asked.
Don't
use
keypress,
but
instead
add
a
spring
"action.
"
This
action
has
a
name
and
is
tied
to
a
function
you
create.
Then,
in
zk_keys,
we
can
add
a
hotkey
based
on
that
action
name,
it
can
be
added
to
epicmenu
so
anyone
can
bind
it
in
the
game.
Look
for
"addaction"
in
the
widgets.
|
1 |
I'm
glad
you
asked.
Don't
use
keypress,
but
instead
add
a
spring
"action.
"
This
action
has
a
name
and
is
tied
to
a
function
you
create.
Then,
in
zk_keys,
we
can
add
a
hotkey
based
on
that
action
name,
and
it
can
be
added
to
epicmenu
so
anyone
can
bind
it
in
the
game.
Look
for
"addaction"
in
the
widgets.
|
3 |
Ideally this function should be within the gui widget like integral menu and keyboard menu, but since it hasn't been done yet, your widget won't hurt. Keep practicing that lua.
|
3 |
Ideally this function should be within the gui widget like integral menu and keyboard menu, but since it hasn't been done yet, your widget won't hurt. Keep practicing that lua.
|