User Tools

Site Tools


set_zone_script

Set Zone Script


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.

Signature:

set_zone_script(zone_name, script_name, script_trigger)
ArgumentDescriptionTypeRequired
zone_nameZone to update the script for.StringYes
script_nameName of the new script.StringYes
script_triggerWhen 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 TypeYes

Example:

 

Results:

Use the Set Zone Script function to…


Editor Node:

set_zone_script.txt · Last modified: 2024/10/11 09:35 by justin