s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamsvoting

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

Voting is open. Play the entries and pick the winner.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
ScriptSystem
chevron_left Classes
class
ScriptSystem

Properties

data_objectGlobals

Methods

functionsAnalyzefunctionsCreateScriptfunctionsCreateStorefunctionsRun
ScriptSystem
Creates scripts in the current menu or game context. Identical source shares cached code, while each script has independent arguments and execution state.
class Sandbox .
sealedSandbox.Engine

data_object Properties 1

Globals
ScriptStore
Runtime values shared by all scripts in this game or menu context.

functions Methods 4

Analyze (source, inputs)
Analysis
CreateScript (source, locals)
Script
Creates a reusable script. Syntax and execution errors are reported through Sandbox.Script.LastError. Binding and IL compilation occur on the first run, once arguments are available. Supply a local store to share persistent fields or preserve them across source edits. If omitted, the script receives its own local store.
CreateStore ()
ScriptStore
Creates an independent store. Share it between scripts belonging to the same owner.
Run (source)
T
Runs a script using cached code and returns its value. Throws if execution fails, no value is returned, or the return type is incompatible with .
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter