Lua Triggers for Fire & Break

Discussion in 'World Editor' started by havocNG, Jul 13, 2022.

  1. havocNG

    havocNG
    Expand Collapse

    Joined:
    May 27, 2019
    Messages:
    101
    I understand Lua Triggers can be set up to for "Gravity" & "Teleport"..... my question is can I set up a Lua trigger for Fire and Break (make a car break apart)? If yes, what is the script for Fire & Break...
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,406
    It can definitely be done, take a look at my mechanical failure mod. It queues the current vehicle LUA from the game engine LUA, allowing you to use the fire.lua file on your car which can ignite or explode the vehicle, as well as beamstate.lua which can break it apart.
     
  3. ltntai

    ltntai
    Expand Collapse

    Joined:
    Mar 18, 2017
    Messages:
    671
  4. rubenker

    rubenker
    Expand Collapse

    Joined:
    Aug 25, 2022
    Messages:
    2
    Hello people, I would like to know if there is a possibility that when a vehicle enters the lua triggers box, the jato boost is activated or perhaps a specific key is pressed.
    I've been looking for a while and can't find anything.
    I have seen that in this thread you know about lua code for the game.
    Thanks.
     
  5. DeWorD

    DeWorD
    Expand Collapse

    Joined:
    Jan 20, 2017
    Messages:
    147
    I wanna have boosters too what won't brake the car, but just speeds it up. With rivers u can make 'fake boosters' but if u boost enough no car anymore :D
     
  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