Signature
native set_pdata_vector(_index, _offset, Float:_origin[3], _linuxdiff = 20, _macdiff = 20);
Description
Sets a vector to an entity's private data.
Notes
-
This function is byte-addressable. Unlike set_pdata_int() which searches
in byte increments of 4, set_pdata_vector searches in increments of 1.
- _linuxdiff value is what to add to the _offset for linux servers.
- _macdiff value is what to add to the _offset for os x servers.
Parameters
- _index — Entity index.
- _offset — Offset to search.
- _origin — Value to set.
- _linuxdiff — Linux difference.
- _macdiff — Mac OS X difference.
Returns
1 on success.
Errors
- A log error is thrown on invalid _index and _offset.