Added GetEntityAddress native (bug 5269, r=dvander).

This commit is contained in:
Michael Busby
2012-07-22 13:40:37 -04:00
parent 99ff1179cc
commit a46dcd45d7
2 changed files with 20 additions and 0 deletions
+9
View File
@@ -691,6 +691,15 @@ stock SetEntDataArray(entity, offset, const array[], arraySize, dataSize=4, bool
}
}
/**
* Gets the memory address of an entity.
*
* @param entity Entity index.
* @return Address of the entity.
* @error Invalid entity.
*/
native Address:GetEntityAddress(entity);
/**
* Retrieves the classname of an entity.
* This is like GetEdictClassname(), except it works for ALL