SetEntDataArray

Last Updated2020-07-09
Created At2007-05-21

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

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

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.

Return Value

void

Error

Invalid entity or offset out of reasonable bounds.