add_script_component_script
Adds a registered script to an entity that already has a script component and returns the updated entity summary. If no script component exists, use attach_script instead.
Instructions
Add a named script to an entity that ALREADY has a script component. Returns the updated entity summary. When NOT to use: if the entity has no script component yet, prefer attach_script, which creates the component and attaches the script in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Entity ID | |
| scriptName | Yes | Registered script name (the parsed script's name attribute) |