-
-
Notifications
You must be signed in to change notification settings - Fork 106
CustomScripts
Divided by Zer0 edited this page Mar 9, 2022
·
12 revisions
Extends: Reference
This class contains very custom scripts definitionsa for objects that need them
The definition happens via object name
var costs_dry_run: bool
func _init(_dry_run) -> void
func custom_script(script: ScriptTask) -> void
This fuction executes custom scripts
It relies on the definition of each script being based the object's name Therefore the only thing we need, is the object itself to grab its name And to have a self-reference in case it affects itself
You can pass a predefined subject, but it's optional.
func custom_alterants(script: ScriptAlter) -> int
warning-ignore:unused_argument