GetEntDataArray Function

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

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

Parameters

int entity

Entity index.

int offset

Offset to use.

int[] 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.