GetWaterQuadAtCoords_3d
клиент GET_WATER_QUAD_AT_COORDS_3D
c
int GET_WATER_QUAD_AT_COORDS_3D(float x, float y, float z);This alternative implementation of GetWaterQuadAtCoords also checks the height of the water level.
Примеры
lua
local currentPedPosition = GetEntityCoords(PlayerPedId())
local waterQuadIndex = GetWaterQuadAtCoords(currentPedPosition.x, currentPedPosition.y, currentPedPosition.z)Параметры
- x: The X coordinate
- y: The Y coordinate
- z: The water level inside the water quad
Возвращает
The water quad index at the given position. Returns -1 if there isn't any there. Also returns -1 if the given point is above the water level.
Страница собрана автоматически из native-decls/GetWaterQuadAtCoords_3d.md. Нашли ошибку — поправьте исходный файл.