Blockland Forums > Modification Help
Key Press
<< < (2/3) > >>
Superb:

--- Quote from: Aware on December 12, 2011, 03:05:31 PM ---And were do I put that?

Also, I belive that is Client sided. I want it for a weapon, which is not client sided.

--- End quote ---

You should be more specific about things then, how did I know you were making a weapon?
Aware:

--- Quote from: Aware on December 12, 2011, 02:34:18 PM ---Im not using a GUI. Its for a weapon.

I want to change it from right click.
I am using

--- Code: ---          function Armor::onTrigger(%this, %player, %slot, %val)
--- End code ---

But I dont want it right click, I want it to be C

--- End quote ---
M:
You can't bind an arbitrary key serverside, only something which is bound to either an engine-ghosted function (image triggers) or a serverCmd (serverCmdLight and whatnot). Other keys are not handled or acknowledged by the server.

Your options are:
a) deal with it
b) clientside mod (deal with it)
phflack:
if you're not having a clientsided mod to make the keybind with the serversided weapon part, i don't think this is possible
the server doesn't actualy detect keypresses, the client does and sends commands to the server based on what the key is
cheese6:
C = the slow down command, slow walk.
I am sure there is some serverCmd called.
because walk normally then hold down C.
Same in a vehicle.
Navigation
Message Index
Next page
Previous page

Go to full version