GetEntDataArray Function

Copies an array of cells from an entity at a given offset.

void GetEntDataArray(int entity, int offset, any[] array, int arraySize, int dataSize)

Parameters

int entity

Entity index.

int offset

Offset to use.

any[] array

Array to read into.

int arraySize

Number of values to read.

int dataSize

Size of each value in bytes (1, 2, or 4).

Errors

Invalid entity or offset out of reasonable bounds.