Jump to content

How do I detect if a script is running on the MP server?


xvii-Dietrich

Recommended Posts

I have a multiplayer server. It is running Lua scripts via triggers (using the "do script file" action). These work fine.

 

What I want, though, is some functionality that will only run if it is called by the server version of the script. It is a logging script, but I don't want it to fill up the player harddrives). So, what I'd like is something like:

 

if script.is.running.on.server() then
 -- write my log information
end

It could either detect it directly, or maybe it could check the ucid (that massive long client-id number, like 01234567890f11bebafd93ab1f7aac436). I've trawled through the documentation and found: https://wiki.hoggitworld.com/view/DCS_export , but I couldn't see anything in there that would help.

 

I also have MIST running, so if there is a function in there I can use, that would also be fine (I didn't see anything, but maybe I'm looking for the wrong search terms).

 

Any suggestions? Thanks!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...