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

    Question about SimLua

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 202 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 Offline
      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 Offline
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post