It executes Squirrel code from the root table.
Note: The code can contain spaces but it cannot contain semicolons (
;) because the developer console considers semicolons as delimiters for commands.
Note: Since the code is not executed from an entity's script scope and not in response to I/O, one can most likely not execute code that calls the variables
Workaround: Define the variables as needed temporarily, e.g.
script ::activator <- Entities.FindByClassname(null, "player").
script printl( GetMapName() )
Should print the name of the current map in the console in most games.