How to set right mouse buttons to "look" command

  • #1, by martin-bSunday, 07. January, 11:58 4 months ago
    Hi friends,

    I need help with setting the mouse buttons. I would like to set the left button as "action" and the right button as "look".

    I have a "mouse" interface created, and this setting:


    "action" - "command button" - "combined button" - "object and character"
    "look" - "command button" - "normal button" - "object and character"

    In the properties, I have set "Main interface" - standard command "action".

    However, the "action" button works fine when I click on an object in the game. After clicking the right mouse button, I would like the character to come to the object and execute the "look" command.

    How do I set the right mouse button to do the "look" command...?


    Thanks for any answer.

    Newbie

    10 Posts


  • #2, by afrlmeSunday, 07. January, 14:39 4 months ago
    A'llo, you don't actually need a look command if you are just planning on using left click for interaction & right click for examine. You just need a single command for interaction as right click at destination & right click immediate command options already exist in the executed command dropdown menu.

    Imperator

    7278 Posts

  • #3, by martin-bSunday, 07. January, 14:54 4 months ago
    Thank you very much for your reply.

    Newbie

    10 Posts

  • #4, by esmeraldaSunday, 07. January, 15:42 4 months ago
    You don't HAVE to use a command for right click, but you can.
    I like doing it, so I can switch to another command interface (like a coin interface) if I want to.

    In the mouse properties set an action for rightclick.

    There you need to save the current object, set your look command, execute the command, then set a little pause and then set your standard command and clear the saved object.
    This is wraped in an if query to check if there is an object beneath the cursor, so it only get's executed when there is something to execute on. ;-)

    Key Killer

    514 Posts

  • #5, by martin-bSunday, 07. January, 17:42 4 months ago
    Thank you very much Esmeralda and Afrlme for your help.

    Newbie

    10 Posts

Write post