29.08.2013, 16:41
I've created a few custom buildings in my gamemode and I've created an override of sorts as below:
Where Override values are the X and Y values for the area below the bridge and Z is the height below the bridge.
Very basically, this just gets the Z coord from Map Andreas but will force a different output if the X and Y coordinates fall within the "override" area (in this case, under the bridge).
pawn Код:
GetZFromXY ( Float: X , Float: Y , & Float: Z )
{
MapAndreas_GetZ_From2DCoord ( X , Y , Z );
if ( X > OverrideXMin && Y > OverrideYMin && X < OverrideXMax && Y < OverrideYMax )
{
Z = OverrideZ;
}
}
Very basically, this just gets the Z coord from Map Andreas but will force a different output if the X and Y coordinates fall within the "override" area (in this case, under the bridge).

