Skip to main content

19 docs tagged with "core"

View all tags

clamp

Force a value to be inside a range.

existpubvar

Checks if a specific public variable exists in the current script.

funcidx

This function returns the ID of a public function by its name.

getarg

Get an argument that was passed to a function.

getproperty

Get a specific property from the memory, the string is returned as a packed string!

getpubvar

Gets a specific public variable from the current script.

heapspace

Returns the amount of memory available for the heap/stack in bytes.

max

Return the highest of two numbers.

min

Return the lowest of two numbers.

numargs

Get the number of arguments passed to a function.

numpubvars

Counts how many public variables there are in the script.

random

Get a pseudo-random number.

setarg

Set an argument that was passed to a function.

setproperty

Add a new property or change an existing property.

setpubvar

Sets a specific public variable in the current script.