Unsolved How to Lua (custom simpleFunction for GlowMap)

Discussion in 'Mod Support' started by strohtmanncorn, Nov 20, 2024.

  1. strohtmanncorn

    strohtmanncorn
    Expand Collapse

    Joined:
    May 17, 2023
    Messages:
    4
    Like i described in the Title i want make a custom simpleFunction with Lua.
    I want the simpleFunction to trigger when turning on the ignition of my Car so i can have a radio glowing when the ignition is turned on.

    I have not Idea how to create or edit a lua file and i cant seem to figure out how to do it, so maybe someone knows how to do this


    Here is the Radio just using a emisse map at the moment
    View attachment 1183455
     

    Attached Files:

    • screenshot_2024-11-20_21-41-11.png
    #1 strohtmanncorn, Nov 20, 2024
    Last edited: Nov 20, 2024
  2. The Stig Is A Spy

    The Stig Is A Spy
    Expand Collapse

    Joined:
    Apr 11, 2018
    Messages:
    237
    You don't need Lua for that; you can just use the running electrics argument if having it turn on with the ignition is all you need.
    {"simpleFunction":{"running":0.49}
     
  3. strohtmanncorn

    strohtmanncorn
    Expand Collapse

    Joined:
    May 17, 2023
    Messages:
    4
    wow thanks so much:)
     
  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