SetEntDataArray Function

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

void SetEntDataArray(int entity, int offset, const any[] array, int arraySize, int dataSize, bool changeState)

Parameters

int entity

Entity index.

int offset

Offset to use.

const any[] array

Array of values to copy.

int arraySize

Number of values to copy.

int dataSize

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

bool changeState

True to set the network state as changed; false otherwise.

Errors

Invalid entity or offset out of reasonable bounds.