Pick
Syntax is:
Let myactor be Pick();
There are two ways to pick an actor. The simplest way to do it is to click the pick button on the navigation bar:
pick button
When you push this button, the cursor turns into a "pointing finger." The system waits for you to left click on an object on the screen. Once you do that, the system decides which actor you meant to pick. Since your selection might intersect many actors, it chooses the one "in front." It then assigns to the MathScript string: Actor, the name of the actor you chose. Later commands that refer to Actor, will operate on the last actor you selected.
The system will not allow you to pick the Setup Actor or to pick Anonymous actors.
The other way to pick an actor is under program control. The Pick() function, when encountered in a script, causes the cursor to change to a pointing finger, and then waits for the Player to pick an actor by left-clicking on one. The return value of the function is the name of the actor. Depending on the name picked, the script may then branch on condition. For example, the fragment that follows could be useful for navigation:
let theactor be pick();
if theactor == "forward arrow" then {move [0,0,-10,1]} else
if theactor == "backward arrow" then {move [0,0,10,1]};