Character Interaction

  • #1, by LupaShivaThursday, 21. July, 15:05 3 weeks 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, 16:04 3 weeks 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}

    Great Poster

    458 Posts

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

    Great Poster

    458 Posts

Write post