BSL:Manual: Difference between revisions

No change in size ,  6 December 2015
m
(→‎if: I'm not so sure anymore that this bug still exists; I am not seeing it in my tests)
m (→‎Built-in: wording)
Line 505: Line 505:


====Built-in====
====Built-in====
Built-in variables are hardcoded into Oni, that is, they were declared in C along with the rest of the engine code, rather than being declared in BSL. The built-in variables are available for accessing and changing their values from BSL at all times, and are listed [[BSL:Reference|here]]. Guidance on how to use them is found in the [[:Category:Scripting tasks|Scripting tasks]] category. You manually get and set the value of any built-in variable from the developer console.
Built-in variables are hardcoded into Oni, that is, they were declared in C along with the rest of the engine code and then registered as accessible to BSL scripts, so you will not find them declared in any game script. The built-in variables are listed [[BSL:Reference|here]]. Guidance on how to use them is found in the [[:Category:Scripting tasks|Scripting tasks]] category. You can get and set the value of any built-in variable from a script or from the developer console.


====Script-defined====
====Script-defined====