How to make animation activation using triggers?

Discussion in 'Programming' started by mnwrk, Nov 24, 2022.

  1. mnwrk

    mnwrk
    Expand Collapse

    Joined:
    Nov 23, 2022
    Messages:
    17
    Hello!

    Faced such question as activation of animation by means of triggers.
    I need to make an opening fence using a trigger, but I did not find suitable scripts for this.
    I only managed to find one script that was used on the map, trying to rewrite it for myself, the results were unsuccessful.
    Is there a script template for a trigger so that it starts the animation? Or any tutorial on this topic?


    In simple words, I need to make the opening animation work when the trigger enters, and the closing animation plays when the car leaves the trigger.
    Map where this function is implemented using a trigger: https://www.beamng.com/resources/sandy-mountain.2644/

    p.s: I use a translator, so there may be errors somewhere
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice