Scripting/Squirrel/Functions/Bounds
This wiki is using an old backup from 2020
Some information may be old/missing
This Data type will hold world boundaries. You will get this Data Type when you use the GetWorldBounds function
Syntax
Bounds( MaxX, MinX, MaxY, MinY )
Arguments
- MaxX - The max X coordination of the boundary.
- MinX - The minimum X coordination of the boundary.
- MaxY - The max Y coordination of the boundary.
- MinY - The minimum Y coordination of the boundary.
Example
function onScriptLoad()
{
local boundaries = GetWorldBounds();
print( "Worldboundaries has been set to :" + boundaries.MaxX + "," + boundaries.MinX + "," + boundaries.MaxY + "," + boundaries.MinY );
}
Notes
The function GetWorldBounds and call OnScriptLoad were used in this example. More info about them in the corresponding pages.