This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
set_zone_script [2024/02/22 00:07] – justin | set_zone_script [2024/02/22 11:48] (current) – justin | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Set Zone Script====== | ======Set Zone Script====== | ||
---- | ---- | ||
- | Coming in v1.1! | ||
- | |||
(WIP) | (WIP) | ||
====Signature: | ====Signature: | ||
<code python> | <code python> | ||
- | function() | + | set_zone_script(zone_name, script_name, |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | | | | | | | + | |zone_name| |[[String]]|Yes| |
+ | |script_name| |[[String]]|Yes| | ||
+ | |script_trigger|When to trigger the [[script]]. Possible values are CHARACTER_ENTER and CHARACTER_EXIT for passable zones, and CHARACTER_COLLIDE for impassable zones.|Trigger Type|Yes| | ||
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | function(); | + | |
</ | </ | ||
// | // | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Function** function to... | + | Use the **Set Zone Script** function to... |
</ | </ | ||
Line 28: | Line 28: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:function_node.png? | + | {{:set_zone_script_node.png? |
</ | </ | ||