Adding Actions to Objects
The Action field of an object allows the objects you build to behave in interesting ways. For example, you can have an object play a sound when approached or bring up a web page when clicked on. Multiple actions can be combined together on a single object to create complex behaviors.
The general syntax of an action is as follows:
As you can see, all actions are combinations of triggers and commands. The trigger specifies what must occur in order for the commands to be carried out. For example:
This action makes an object "unsolid" so that users can pass through it without colliding with it. "create" is the trigger and "solid off" is the command. Another example:
This action displays the Outerworlds home page when the user clicks on the object. "activate" is the trigger and "url www.Outerworlds.com" is the command.
The following triggers are available:
Each trigger can be combined with one or more of the following commands:
Multiple actions on a single object
You can attach more than one command to a single trigger by separating the commands with commas. For example:
This creates an object which is both invisible and also the source of a continuously playing sound file.
Multiple trigger/action pairs can be combined on a single object by separating them with semi-colons. For example:
This creates an object that is invisible, but which will display the Outerworlds home page when bumped by a user (objects can still be bumped while invisible.)