211
Off Topic / Re: My turtle just competed in the local turtle races...
« on: May 20, 2013, 03:55:49 PM »
Rc car...
Turtle...
hm
Turtle...
hm
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
This is what it looks like when I have love.oh my gosh lol
Can't you sue for invasion of privacy?Yes.




EDIT: Oh! I think i understand now! Thanks!Code: [Select]Make one of the 3 line paragraphs for every bind you want, the if check is so when someone gets the idea to execute your add-on 2 times it doesn't double the bindings.if(!$YourAddonHasBinds)
{
$remapdivision[$remapcount] = "Your Addon Title";
$remapname[$remapcount] = "Do Something";
$remapcmd[($remapcount++)-1] = "myFunction1";
$remapdivision[$remapcount] = "Your Addon Title";
$remapname[$remapcount] = "Do Something Else";
$remapcmd[($remapcount++)-1] = "myFunction2";
$YourAddonHasBinds = 1;
}
function myFunction1(%val)
{
echo("Did something!");
}
function myFunction2(%val)
{
echo("Did something else!");
}
The function get's called when the key is pressed, and when it is released. %val is 1 when the key is pressed and 0 when it is released, the rest should be self-explanatory
ThanksCode: [Select]Make one of the 3 line paragraphs for every bind you want, the if check is so when someone gets the idea to execute your add-on 2 times it doesn't double the bindings.if(!$YourAddonHasBinds)
{
$remapdivision[$remapcount] = "Your Addon Title";
$remapname[$remapcount] = "Do Something";
$remapcmd[($remapcount++)-1] = "myFunction1";
$remapdivision[$remapcount] = "Your Addon Title";
$remapname[$remapcount] = "Do Something Else";
$remapcmd[($remapcount++)-1] = "myFunction2";
$YourAddonHasBinds = 1;
}
function myFunction1(%val)
{
echo("Did something!");
}
function myFunction2(%val)
{
echo("Did something else!");
}
The function get's called when the key is pressed, and when it is released. %val is 1 when the key is pressed and 0 when it is released, the rest should be self-explanatory