Sets the script of the specified zone. An empty string value (i.e. two double quotes: “”) can be specified for the script name in order to remove the zone's script. The script name is case-sensitive.
set_zone_script(zone_name, script_name, script_trigger)
Argument | Description | Type | Required |
---|---|---|---|
zone_name | Zone to update the script for. | String | Yes |
script_name | Name of the new script. | String | Yes |
script_trigger | When to trigger the script. Possible values are CHARACTER_ENTER, CHARACTER_EXIT, OBJECT_ENTER, and OBJECT_EXIT for passable zones, and CHARACTER_COLLIDE for impassable zones. | Trigger Type | Yes |
Results:
Use the Set Zone Script function to…