跳转至

builtin


wait

void native.builtin.wait(int ms)


timera

int native.builtin.timera()

Counts up. Every 1000 is 1 real-time second. Use SETTIMERA(int value) to set the timer (e.g.: SETTIMERA(0)).

timerb

int native.builtin.timerb()


settimera

void native.builtin.settimera(int value)


settimerb

void native.builtin.settimerb(int value)


timestep

float native.builtin.timestep()

Gets the current frame time.

sin

float native.builtin.sin(float value)


cos

float native.builtin.cos(float value)


sqrt

float native.builtin.sqrt(float value)


pow

float native.builtin.pow(float base, float exponent)


log10

float native.builtin.log10(float value)

Old name: _LOG10

vmag

float native.builtin.vmag(float x, float y, float z)

Calculates the magnitude of a vector.

vmag2

float native.builtin.vmag2(float x, float y, float z)

Calculates the magnitude of a vector but does not perform Sqrt operations. (Its way faster)

vdist

float native.builtin.vdist(float x1, float y1, float z1, float x2, float y2, float z2)

Calculates distance between vectors.
The value returned will be in meters.

vdist2

float native.builtin.vdist2(float x1, float y1, float z1, float x2, float y2, float z2)

Calculates distance between vectors but does not perform Sqrt operations. (Its way faster)
The value returned will be in RAGE units.

shift_left

int native.builtin.shift_left(int value, int bit_shift)


shift_right

int native.builtin.shift_right(int value, int bit_shift)


floor

int native.builtin.floor(float value)

Rounds a float value down to the next whole number

ceil

int native.builtin.ceil(float value)

Rounds a float value up to the next whole number

round

int native.builtin.round(float value)


to_float

float native.builtin.to_float(int value)


set_this_thread_priority

void native.builtin.set_this_thread_priority(int priority)

THREAD_PRIO_HIGHEST = 0
THREAD_PRIO_NORMAL = 1
THREAD_PRIO_LOWEST = 2
THREAD_PRIO_MANUAL_UPDATE = 100