Jump to content

Oni (folder)/GameDataFolder/IGMD/global: Difference between revisions

m
link fix
m (preemptive link fix (new page not created yet))
m (link fix)
Line 15: Line 15:
  }
  }


You might be tempted to use <tt>[[BSL:Syntax|fork]] some_global_function</tt>, but it's usually better to call the function "inline" (that is, no <tt>fork</tt>) to make sure that it fully executes before the original level logic resumes. You can always <tt>fork</tt> what you want to be <tt>fork</tt>ed inside your global function. Just be aware that anything you add, such as a <tt>sleep</tt> command, will delay the execution of the original logic, unless you do decide to use <tt>fork</tt>.
You might be tempted to use <tt>[[BSL:Functions|fork]] some_global_function</tt>, but it's usually better to call the function "inline" (that is, no <tt>fork</tt>) to make sure that it fully executes before the original level logic resumes. You can always <tt>fork</tt> what you want to be <tt>fork</tt>ed inside your global function. Just be aware that anything you add, such as a <tt>sleep</tt> command, will delay the execution of the original logic, unless you do decide to use <tt>fork</tt>.


==Code overriding==
==Code overriding==