Arguments: |
|
---|
Returns: | TRUE if the script is allowed to create a new entity on the current host, FALSE otherwise |
---|
Tells whether the script is allowed to create a new entity
Returns: | TRUE if the script is allowed to create a new presence for the entity, FALSE otherwise |
---|
Tells whether the script is allowed to create a new presence
Returns: | TRUE if eval() is invokable in the script |
---|
Returns: | TRUE if the script is allowed to import an emerson script using system.import, FALSE otherwise |
---|
Tells whether the script is allowed to import another emerson script
Returns: | TRUE if the script is allowed to register for proximity queries, FALSE otherwise |
---|
Tells whether the script is allowed to register for proximity queries
Returns: | TRUE if the script is allowed to receive a message, FALSE otherwise |
---|
Tells whether the script is allowed to register to receive messages
Returns: | TRUE if the script is allowed to send a message, FALSE otherwise |
---|
Tells whether the script is allowed to send messages
Arguments: |
|
---|
Deprecated since version Use: createSandbox
Deprecated since version Use: createEntity
Deprecated since version Use: createPresence
Arguments: |
|
---|---|
Throws Exception: | |
Calling create_entity in a sandbox without the capabilities to create entities throws an exception. |
Creates a new entity on the current entity host.
Deprecated since version Use: createEntityScript instead.
See also
system.canCreateEntity
Arguments: |
|
---|
Creates a new entity based on the position and space of presence passed in.
Arguments: |
|
---|---|
Throws Exception: | |
Calling create_entity in a sandbox without the capabilities to create entities throws an exception. |
Creates a new entity on the current entity host.
See also
system.canCreateEntity
Arguments: |
|
---|---|
Throws Exception: | |
|
|
Returns: | Nothing. |
Creates a new presence for the entity. There are two ways to invoke this method. You can pass it an object containing properties to set (e.g. with fields ‘position’, ‘orientation’, etc) or pass it a fixed set of arguments (mesh, callback, position, space). Only the first method allows setting all properties of the presence and is preferred. In both cases, the second argument can be a callback to be invoked when the presence is connected.
By default, the presence’s intial position is the same as the presence that created it and its scale is 1.
See also
system.canCreatePresence
Arguments: |
|
---|---|
Returns: | a visible object with the space and object id contained argument. Throws an exception if string is incorrectly formatted, otherwise returns vis object. |
Arguments: |
|
---|---|
Returns: | Returns an object representing the deserialized string. |
Arguments: |
|
---|
Disable restoration from storage after a crash.
Arguments: |
|
---|---|
Throws TypeError: | |
if anything besides a function is provided |
|
Returns: | true on success, false if the system is shutting down |
Return type: | boolean |
Trigger an event handler. The handler will be added to the event queue and invoked later, i.e. on a different stack than the current one.
Arguments: |
|
---|---|
Returns: | Each index of object is the identifier for a separate visible object. The value of that index is the visible itself. |
Return type: | object |
Returns: | returns the script that was set by setScript, and that is associated with this sandbox. |
---|
Returns: | the version of the Emerson being run by the entity host |
---|
Gives the version of Emerson run by the entity host
param String scriptFile: The Emerson file to import and execute in the current script throws Exception: If the import leads to circular
dependencies, it will throw an exception. Use system.require to include each file only once.
Loads a file and evaluates its contents. Note that this version always imports the file, even if it was previously imported.
See also
system.require
Returns: | Returns true if you are running in headless mode. Returns false otherwise. |
---|
Arguments: |
|
---|
Loads and evaluates a file if it has not already been loaded. Unlike system.import, this ensures that each file is imported at most one time. This is usually what you want to use.
See also
system.import
Throws : | __killEntity__ (If kill entity command is successful) |
---|---|
Throws : | Exception (If do not execute kill entity from root context). |
Destroys the entity and all the presences and state associated with it if run from the root context. If not run from root context, throws error.
Arguments: |
|
---|---|
Returns: | does not return anything |
Registers a callback to be invoked when a presence created within this sandbox gets connected to the world
Arguments: |
|
---|---|
Returns: | does not return anything |
Registers a callback to be invoked when a presence created within this sandbox gets disconnected from the world.
Arguments: |
|
---|
prints the argument in javascript/json style string format
Arguments: |
|
---|
Prints the argument
See also
system.prettyPrint
Arguments: |
|
---|
Prints the argument, followed by a newline
See also
system.prettyPrint
Arguments: |
|
---|
Loads and evaluates a file if it has not already been loaded. Unlike system.import, this ensures that each file is imported at most one time. This is usually what you want to use.
See also
system.import
Returns: | Does not return any value |
---|
Destroys all created objects, except presences in the root context. Then executes script associated with root context. (Use system.setScript to set this script.)
See also
system.setScript
Arguments: |
|
---|
Returns: | void |
---|
Arguments: |
|
---|
Arguments: |
|
---|
Arguments: |
|
---|
Tries to send a message, msg, from the sandbox that system is instantiated in to sbox.
Arguments: |
|
---|---|
Returns: | Returns a string representing the serialized object. Takes an object and serializes it to be sent over the network, producing a string. |
Deprecated since version You: should use setScript
Arguments: |
|
---|
Set the script to execute when this object is restored after a crash.
Arguments: |
|
---|---|
Returns: | does not return any value |
Sets the script to be invoked when the system.reset is called
See also
system.reset
Arguments: |
|
---|
Arguments: |
|
---|
Arguments: |
|
---|
Arguments: |
|
---|
Arguments: |
|
---|
Arguments: |
|
---|
Arguments: |
|
---|
Arguments: |
|
---|---|
Returns: | a object representing a handle for this timer. This handle can be used in future to suspend and resume the timer |
Returns: | the string representation of the system object |
---|
See also
system.printsystem.prettyprint
Arguments: |
|
---|
Wrap a callback in a function which restores system.self to the value when the callback was setup.