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