Author Topic: Allow user to bind an action to a key  (Read 533 times)

Being a newbie at coding and wanting to release a small but neat addon I came up with, I want to know how to let my addon appear in the controls list and and let the user be able to bind it to a key of their choice.

All help appreciated.

Code: [Select]
if (!$YourModName)
{
$remapDivision[$remapCount] = "Mod Name";
$remapName[$remapCount] = "Action Name";
$remapCmd[$remapCount] = "Function that the button does";
$remapCount++;
$YourModName;
}

Code: [Select]
$YourModName;Causes syntax error. Use:
Code: [Select]
$YourModName = 1;