Blockland Forums > Modification Help
Guns Akimbo Bind - (need help)
Nethog:
--- Quote from: Kalphiter on January 17, 2011, 04:04:40 PM ---Well how the hell does the server know what to do when you say "/RocketLauncher"?
--- End quote ---
Pretend your Riddler and pretend the servers a jew.
Arcturus:
--- Quote from: Kalphiter on January 17, 2011, 04:04:40 PM ---Well how the hell does the server know what to do when you say "/RocketLauncher"?
--- End quote ---
Its keybinded.
I never said anything about it being a cmd.
edit:
dammit its not even showing up.
I changed it to AkimboGunsImage
But the keybind control isn't showing up in Controls.
Crap, what the forget could possibly make it not show up.
Arcturus:
I got it show up in the controls menu.
But its not working in-game.
Here's code:
--- Code: ---if (!$addedKeys)
{
$remapDivision[$remapCount] = "Guns Bind";
$remapName[$remapCount] = "Use AkimboGun";
$remapCmd[$remapCount] = "UseAkimboGun";
$remapCount++;
$addedKeys = true;
}
function useAkimboGun(%on)
{
if(!%on){return;}
commandtoserver('AkimboGunImage');
}
--- End code ---
Halp??
Kalphiter:
--- Quote from: Arcturus on January 17, 2011, 04:10:05 PM ---Its keybinded.
I never said anything about it being a cmd.=
--- End quote ---
It's equivalent to telling the server "/RocketLauncher" and it can't just make commands out of nowhere.
Arcturus:
--- Quote from: Kalphiter on January 17, 2011, 04:21:49 PM ---It's equivalent to telling the server "/RocketLauncher" and it can't just make commands out of nowhere.
--- End quote ---
Well here's the updated code:
--- Code: ---if (!$addedKeys)
{
$remapDivision[$remapCount] = "Guns Bind";
$remapName[$remapCount] = "Use AkimboGun";
$remapCmd[$remapCount] = "UseAkimboGun";
$remapCount++;
$addedKeys = true;
}
function useAkimboGun(%on)
{
if(!%on){return;}
commandtoserver('AkimboGunImage');
}
function serverCmdAkimboGun(%client)
{
%player = %client.player;
if(isObject(%player))
{
%player.updateArms("AkimboGunImage");
%player.mountImage("AkimboGunImage", 0);
}
}
--- End code ---
So now with that code, it should be a command.
/AkimboGun
but its not working, so i must have done something wrong