Jump to content

Recommended Posts

Posted

Was just thinking that since the game player in LE is sandbox mode (I believe) and you can't use file i/o in sandbox mode, I was wondering if there is a way we can tell we are running from the gameplayer in our scripts? Might be nice to know this so we can skip calling i/o functions to avoid errors instead of needing different scripts of the game to run in the game player vs not using the game player.

Posted

You can query the command line to tell if sandbox mode is enabled:

System::GetProperty("sandbox")

  • Upvote 5

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

ah. sorry. i think it was late. :) i had in my head that it only checks for the gameplayer. but if it checks for sandbox lua mode everything is ok.

 

sorry again. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...