User Tools

Site Tools


set_zone_script

This is an old revision of the document!


Set Zone Script


Sets the script of the specified zone. An empty string value (“”) 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.1728664525.txt.gz · Last modified: 2024/10/11 09:35 by justin