The "sys_orig_init" Function
#
SyntaxArgument | Type | Description |
---|---|---|
entity | integer | The data structure of the entity to set origin of |
index | integer | The index of the row containing the target entity |
xorig | real/macro | The horizontal texture offset, or origin point, relative to the top-left corner |
yorig | real/macro | The horizontal texture offset, or origin point, relative to the top-left corner |
#
DescriptionApplies the given origin points to the input entity on initialization. Origin can be set as either a literal value in pixels, or calculated automatically to set origins to left, top, center, right, or bottom.
As this script is run automatically by any actions that allow setting origins, it is almost never necessary to run sys_orig_init
manually.
See Macros & Keywords for a list of available automatic origin modes.