FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Question about SimLua

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 218 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      illumination
      last edited by

      I met problems when I was trying to call global functions .
      The game warned me ' access to nonexistent global variable xxx' , but I make sure these ones actually exist.
      Except for those defined as elements of a certain table, there's still magical bugs.
      For example , DamageArea , GetEntityById . These global functions cannot be found .
      After looking up this post .
      https://supcom.fandom.com/wiki/Console
      I tried a lot in game console and if I prefixed commands with SimLua , they woul run . And I think it's maybe because some commands are storaged in SimLua Global , which cannot be found in Lua Global .
      I was trying to call functions in SimCallBacks.lua , which failed. But I know I can call DamageArea in Effects/Entities , what's form of power is that ?

      1 Reply Last reply Reply Quote 0
      • Ctrl-KC
        Ctrl-K
        last edited by

        https://gist.github.com/HardlySoftly/fc4945cf6fb99e1f8f0e1b8fbb023971

        “Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
        — Steve Jobs.
        My UI Mods
        Support me

        1 Reply Last reply Reply Quote 0
        • First post
          Last post