Retrieves an integer value from an entity's property.
This function is considered safer and more robust over GetEntData, because it performs strict offset checking and typing rules.
int GetEntProp(int entity, PropType type, const char[] prop, int size, int element)
Entity/edict index.
Property type.
Property name.
Number of bytes to write (valid values are 1, 2, or 4). This value is auto-detected, and the size parameter is only used as a fallback in case detection fails.
Element # (starting from 0) if property is an array.
Value at the given property offset.
Invalid entity or property not found.
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.