Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
tutorial:writing_your_first_script [2018/07/03 05:53] optrix |
tutorial:writing_your_first_script [2018/07/16 00:11] (current) optrix |
||
|---|---|---|---|
| Line 38: | Line 38: | ||
| So if we wanted to intoroduce someone to several components - the //Main Engine//, //Secondary Engine//, we could have the following script... | So if we wanted to intoroduce someone to several components - the //Main Engine//, //Secondary Engine//, we could have the following script... | ||
| - | <code> | + | <code xml> |
| + | <script> | ||
| <!-- Show the Main Engine--> | <!-- Show the Main Engine--> | ||
| <perspective target="Main Engine"/> | <perspective target="Main Engine"/> | ||
| Line 46: | Line 47: | ||
| <perspective target="Secondary Engine"/> | <perspective target="Secondary Engine"/> | ||
| <waitforclick caption="This is the secondary engine"/> | <waitforclick caption="This is the secondary engine"/> | ||
| + | </script> | ||
| </code> | </code> | ||
| Line 56: | Line 58: | ||
| For example, in this case we are going to highlight the //exhaust// on our main engine as part of our scripted tour. | For example, in this case we are going to highlight the //exhaust// on our main engine as part of our scripted tour. | ||
| - | <code> | + | <code xml> |
| + | <script> | ||
| <perspective target="Main Engine"/> | <perspective target="Main Engine"/> | ||
| <waitforclick caption="This is the main engine"/> | <waitforclick caption="This is the main engine"/> | ||
| Line 67: | Line 70: | ||
| <perspective target="Secondary Engine"/> | <perspective target="Secondary Engine"/> | ||
| <waitforclick caption="This is the secondary engine"/> | <waitforclick caption="This is the secondary engine"/> | ||
| + | </script> | ||
| </code> | </code> | ||
| Line 72: | Line 76: | ||
| The **[[ardiscript:highlightobject|highlight]]** step shown above is an example of a step that needs to be //removed// when you're done. **[[ardiscript:unhighlight|Unhighlight]]** performs this job. | The **[[ardiscript:highlightobject|highlight]]** step shown above is an example of a step that needs to be //removed// when you're done. **[[ardiscript:unhighlight|Unhighlight]]** performs this job. | ||
| + | |||
| + | When a script terminates, it is //cleaned up//. This means that many behaviours - such as the Highlight shown above - will automatically be reversed when the script completes. | ||