Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Returns the height (above sea level) of the highest road surface at the given XY position.

Takes into consideration any object that has a Roadway LOD (see the VBS3 Developer Reference) defined (for example, may return the top of a bridge over a valley).

Syntax

Syntax:roadSurfaceHeight position
Parameters:
Return Value:Number

Examples

Examples:

Additional Information

See also:
Multiplayer:
Problems:

Notes





Note that if you pass in a Z coordinate (elevation), it is ignored. For example, for a coordinate in a 3-story building, only the top floor / roof height will be returned, no matter what elevation is passed in the Z coordinate. Another way to think of it is as follows: this command will return the Z coordinate (above sea level) of where a raindrop would land if it fell from the sky to the X/Y coordinate you pass. --
General Barron
18:48, 20 November 2013 (PST)