How to set right mouse buttons to "look" command

  • #1, z martin-bSunday, 07. January, 11:58 hodinky 9 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.

    Bažant

    10 Posts


  • #2, z afrlmeSunday, 07. January, 14:39 hodinky 9 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.

    Imperátor

    7285 Posts

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

    Bažant

    10 Posts

  • #4, z esmeraldaSunday, 07. January, 15:42 hodinky 9 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. ;-)

    Zabiják klíčů

    525 Posts

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

    Bažant

    10 Posts

Napsat příspěvek