FindDataMapInfo
Given an entity, finds a nested datamap property offset.
This information is cached for future calls.
native int FindDataMapInfo(int entity, const char[] prop, PropFieldType& type = view_as<PropFieldType>(0), int& num_bits = 0, int& local_offset = 0)
Parameters
const char[] prop
Property name.
PropFieldType& type
Optional parameter to store the type.
int& num_bits
Optional parameter to store the number of bits the field
uses. The bit count will either be 1 (for boolean) or
divisible by 8 (including 0 if unknown).
int& local_offset
Optional parameter to store the local offset, as
FindDataMapOffs() would return.
Return Value
int An offset, or -1 on failure.