Character Interaction

  • #1, by LupaShivaThursday, 21. July 2022, 15:05 A year 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

    Forum Fan

    131 Posts


  • #2, by esmeraldaThursday, 21. July 2022, 16:04 A year 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}

    Key Killer

    508 Posts

  • #3, by LupaShivaThursday, 21. July 2022, 16:20 A year 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.

    Forum Fan

    131 Posts

  • #4, by esmeraldaThursday, 21. July 2022, 16:50 A year 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.

    Key Killer

    508 Posts