DE EN FR ES IT CZ
Zurück Nach oben

How can I trigger an action from Lua when a character enters an area?

  • #1, by mark-tuan 3 weeks ago Zitieren
    Hi everyone,

    I’m still getting familiar with Visionaire Studio and I’m trying to understand how Lua scripts and the normal action parts can work together.

    I have an action area in a scene and I want to run a small Lua function automatically when the player enters it. Is there a recommended way to detect the character entering the area and then trigger the action/script?

    I know that some things can be done directly with action parts, but I’m interested in using Lua because I may want to add some extra conditions later.

    Would appreciate a simple example or explanation of how you normally set this up in Visionaire. Thanks!
  • #2, by pepko-akrapovik A week ago Zitieren
    ????? ?? ? ???????? ?? ?????? ? ?? ?????????? ????? ???????? ??? ??? ?????. ????? ?? ?????????? — ????? ?? ???-???? ???????, ?? ?? ? ?? ???????? ?????????. ???? ????????? long-term ?????? — ?????????? ????, ????????? ?????????, ???-4. ? ??????? ????? ???????? ?????? ???????-?????? ????? ?? ??????. ???????? ??? ?? ?????? ? ??????????? ???????????? ??????. ?????? ????????? ??????? ?? ??? ?????? — ????????? ??? ???????? ????????????. ? ??????? ??????????? ?? ????'??-???? ??????????? ? ?????? ?????? ?????????. ?????? live ?? ?????? ?????? ?????????? — ??????????? ??????????? ???????. ???-???? ???????? ??????? ??????? ??? ???????. ??????? ???????? ??? ?????????? ?????? ? — ???-??? ????? ?????? ????????? ???????. ??????? ???? ??????????? ???????.