World
constWorld:object
Defined in: client/api.d.ts:860
Client-side queries against the currently streamed Mafia II world.
Type Declaration
Section titled “Type Declaration”getGroundZ()
Section titled “getGroundZ()”getGroundZ(
x,y,z,maxDistance?):number|null
Finds the closest ground surface below a world-space position using the game physics scene.
Parameters
Section titled “Parameters”number
World-space X coordinate of the ray origin.
number
World-space Y coordinate of the ray origin.
number
World-space Z coordinate from which to search downward.
maxDistance?
Section titled “maxDistance?”number
Maximum downward probe distance in world units; defaults to 200.
Returns
Section titled “Returns”number | null
The ground Z coordinate, or null when no surface is found, physics is unavailable, or maxDistance is not positive.
