Skip to content

yoptions

Serra Royale edited this page Oct 6, 2025 · 9 revisions

YEngine supports several extensions to the LSL to make it easier to write scripts.

Scripts using these features will only work on a compatible YEngine version. They will not compile or run on XEngine or older versions of YEngine.

If the second line of a script is (currently first line needs to be present, empty or with script engine selection)

yoption;
Yoption Description
advflowctl Provides traditional break/continue/switch/case statements
arrays Provides an associative mutable datatype
chars Provides the character datatype
inline events Handle event processing inline instead of using event handle
norighttoleft Enables an optimization
objects Provides a mechanism to create script-definable class types, including generics and fixed-dimension arrays
trycatch Provides a mechanism to catch exceptions
samples Example scripts using YEngine features
all Useful if using 4 or more options. Does not support norighttoleft. Enable viayoption all;

Clone this wiki locally