Absolute beginner's guide to scripting: Difference between revisions

>JulienDethurens
>JulienDethurens
Line 90: Line 90:
===Starting and Stopping your script===
===Starting and Stopping your script===
Script objects run their code under the following conditions:
Script objects run their code under the following conditions:
* The script is added to the game (Select the script in the Explorer window and cut it (CTRL+X), then paste it back into the game (CTRL+V, or right click Workspace and click; "Paste-into").
* The script is added to the game (Select the script in the Explorer window and cut it (CTRL+X), then paste it back into the game (CTRL+V, or right click Workspace and click "Paste Into").
* The script's disabled property is changed to false (select the script in the Explorer window and toggle it's Disabled property in the Properties window).
* The script's disabled property is changed to false (select the script in the Explorer window and toggle it's Disabled property in the Properties window).


Anonymous user