[lua] Getting Engine Parameters

Discussion in 'General Discussion' started by Ingwar, Jan 3, 2026 at 12:45 PM.

  1. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    106
    Likes Received:
    18
    Is it possible to obtain engine parameters from blueprint inside Lua script? Such as MaxPower for instance.
     
  2. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,795
    Likes Received:
    3,377
    How do you open the Lua file to view it?
     
  3. Oystein

    Oystein Well-Known Member

    Joined:
    May 24, 2018
    Messages:
    358
    Likes Received:
    336
  4. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    106
    Likes Received:
    18
    Thank you, Oystein. I know about that, very limited indeed. There is no direct function to get MaxPower.
    Looks like the only way is just to hard code such values inside the script...
     
  5. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    106
    Likes Received:
    18
    For the history... Looks like the only way to get those values is by manually parsing blueprints from lua code. Since it is done only once in the beginning of the scenario, not a big deal performance wise.
     

Share This Page