Create Scripts from the Shortcut Toolbar
You can create scripts from the shortcut toolbar.
You can also use the Properties panel or the shortcut menu to create scripts.
In this case, you create the script automatically and add it to the selected actor. You can then edit your script in the Behavior Editor.