Skip to content

water


disable_water_lookup

void native.water.disable_water_lookup()

Must be called every frame to take full effect.

enable_water_lookup

void native.water.enable_water_lookup()


get_water_height

bool native.water.get_water_height(float x, float y, float z, ptr int height)

Checks against a global variable that is set by _SET_WORLD_WATER_TYPE. If that is set to one it will fail. Likely not the only issue but part of it.

get_water_height_no_waves

bool native.water.get_water_height_no_waves(float x, float y, float z, ptr int height)


test_probe_against_all_water

int native.water.test_probe_against_all_water(float x1, float y1, float z1, float x2, float y2, float z2, int flags, ref vec3 intersection_pos)

enum eScriptWaterTestResult
{
    SCRIPT_WATER_TEST_RESULT_NONE,
    SCRIPT_WATER_TEST_RESULT_WATER,
    SCRIPT_WATER_TEST_RESULT_BLOCKED,
};

test_vertical_probe_against_all_water

int native.water.test_vertical_probe_against_all_water(float x, float y, float z, int flags, ptr int water_height)

Checks against a global variable that is set by _SET_WORLD_WATER_TYPE. If it's set to 1 (Guarma) it will fail.

See TEST_PROBE_AGAINST_ALL_WATER.

remove_extra_calming_quad

void native.water.remove_extra_calming_quad(int index)

Only used in rcm_crackpot1 R* Script: p0 = 0

_0x09a1c7dfdce54fbc

void native.water._0x09a1c7dfdce54fbc(int p0)

Called together with REMOVE_EXTRA_CALMING_QUAD in rcm_crackpot1 R* Script: p0 = 0
_REMOVE_*

_0xf0fbf193f1f5c0ea

void native.water._0xf0fbf193f1f5c0ea(int ped)

Only used in fishing_core R* Script

_0xa33f5069b0cb89b8

void native.water._0xa33f5069b0cb89b8()

Only used in fishing_core R* Script

_0xb34a6009a0db80b8

void native.water._0xb34a6009a0db80b8(int entity)

Used in bounty1, fanale3, sean1 R* Scripts

_set_ocean_guarma_water_quadrant

void native.water._set_ocean_guarma_water_quadrant(float waves_height, float p1, int p2, float p3, float p4, float p5, float p6, float waves_strength, int p8)

Only used in R* Script guama1

_reset_guarma_water_state

void native.water._reset_guarma_water_state()

Only used in guama1 / guama3 R* Script
_REQUEST_* or _RESET_*

_set_world_water_type

void native.water._set_world_water_type(int water_type)

0 = World
1 = Guarma

_get_world_water_type

int native.water._get_world_water_type()


_0x0dcec6a92e497e17

void native.water._0x0dcec6a92e497e17(int entity, int p1)

Only used in native_son1 R* Script: p1 = 1

_0xe8126623008372aa

void native.water._0xe8126623008372aa()

Only used in fussar1 / train_robbery2 R* Script