Walking with right clicking

  • #1, by gustyTuesday, 11. March 2014, 08:00 11 years ago
    Is it possible to set ordinary walking on the scene (it's called "walk to" in VS I believe?) on left click as well as on right mouse click? I checked "Activates standard command" under the Right mouse button settings as well as "always activate standard command" in the Game properties but I'm not able to get this to work.

    Simply I would like to have two kinds of walking, one for left clicking and other one for right clicking, only thing that would be different would be the character outfit.

    Thanks.

    Forum Fan

    159 Posts


  • #2, by ScubidubiTuesday, 11. March 2014, 09:25 11 years ago
    You would have to set up a new walk command for the right click in your mouse/control interface. Set it as conmand in the control set up and assign that control interface to the main character.

    Forum Fan

    106 Posts

  • #3, by gustyTuesday, 11. March 2014, 09:45 11 years ago
    Yes sure but where exactly can you specify that this new interface (command) is controlled by right mouse button?

    Forum Fan

    159 Posts

  • #4, by ScubidubiTuesday, 11. March 2014, 11:15 11 years ago
    Thinking about it.. i am not yet sure how i would impliment a second walking animation. At least bit bow at work. Maybe someone elese is smarter.

    Forum Fan

    106 Posts

  • #5, by ScubidubiTuesday, 11. March 2014, 11:38 11 years ago
    What you could do is copy the outfit of your main character and replace the walking animation with the..lets call it secondary walk. Then define a key action that will always be executed on right click..and make that change your charakter outfit to the secondary walk. You can change the walking speed for this walk. Of course you would need to counter this with thebprimary walking having an action to switch to nornal outfit on buttonpress. Does that make sense?

    Forum Fan

    106 Posts

  • #6, by gustyTuesday, 11. March 2014, 19:27 11 years ago
    Well I have already setup two character outfits with a different walking animation and different speed for each one. But there is no way how to trigger the change of its outfit on right click. I mean I could toggle primary/secondary outfit with RMB but I would still walk my character with LMB. Only thing that comes to mind is set "execute script" on RMB but I would need to know the script for "walk to" which I don't.

    Forum Fan

    159 Posts

  • #7, by ScubidubiTuesday, 11. March 2014, 19:42 11 years ago
    in the setup tab, go to mouse properties, select -> right click start following action -> + ->change outfit

    but actually this wouldnt make you walk if you right click on the floor unsless there is a workaround here

    Forum Fan

    106 Posts

  • #8, by SimonSTuesday, 11. March 2014, 19:48 11 years ago
    In the right click action, add an action part "execute script" with:
    getObject("Game.GameCurrentCharacter"):setValue(VCharacterDestination, getCursorPos())
    

    It's as simple as that.

    Thread Captain

    1590 Posts

  • #9, by gustyTuesday, 11. March 2014, 19:52 11 years ago
    It works just fine! Thank you very much Simon.

    Forum Fan

    159 Posts