Character Interaction

  • #1, z LupaShivaThursday, 21. July 2022, 15:05 hodinky 2 years ago
    Hello everyone

    Im advancing my game, but i came with a problem.

    I have several characters that move randomly to a place, there are 9 places available in that random movement, when i use an object in one of those characters (Execute at destination), it executes but it seems to execute far away, like not as close as usually, does it has to be with the random placing?

    Thanks and sorry for my english

    Fanoušek fóra

    134 Posts


  • #2, z esmeraldaThursday, 21. July 2022, 16:04 hodinky 2 years ago
    You can set the interaction position for a character in the character properties (position for executing an action). This is the postion the main character will walk to to interact with the npc.
    This works fine for static characters. 

    When no interaction position is set, the engine will automatically select a position, but this is usually a bit far from the npc.

    I would suggest to set a new interaction position for your npcs when they reach the new location via Lua scipt.

    Characters["name_character"].ActionDestPosition = {x = position_x, y = position_y}

    Zabiják klíčů

    525 Posts

  • #3, z LupaShivaThursday, 21. July 2022, 16:20 hodinky 2 years ago
    Thanks for the help

    Im really not that good in lua scripts, but i think i managed to avoid lua scripts with a chase character, i set a chase character, and after the interaction, stop chase, i think it worked =) it moves to the place where the character is.

    Fanoušek fóra

    134 Posts

  • #4, z esmeraldaThursday, 21. July 2022, 16:50 hodinky 2 years ago
    If you want to join the Visionaire discord  https://discord.gg/DYm9QU2x , I have actually written a plugin for a custom action part (linked in the faq channel) to change the interaction point of a character.

    Zabiják klíčů

    525 Posts