plugins/include/entity.inc
changeset 3585 053561f38443
parent 3330 643ca8c2db11
child 3967 ceafb87d38a7
     1.1 --- a/plugins/include/entity.inc	Sun Jul 22 12:01:35 2012 -0400
     1.2 +++ b/plugins/include/entity.inc	Sun Jul 22 13:40:37 2012 -0400
     1.3 @@ -692,6 +692,15 @@
     1.4  }
     1.5  
     1.6  /**
     1.7 + * Gets the memory address of an entity.
     1.8 + * 
     1.9 + * @param entity		Entity index.
    1.10 + * @return				Address of the entity.
    1.11 + * @error				Invalid entity.
    1.12 + */
    1.13 +native Address:GetEntityAddress(entity);
    1.14 +
    1.15 +/**
    1.16   * Retrieves the classname of an entity.
    1.17   * This is like GetEdictClassname(), except it works for ALL
    1.18   * entities, not just edicts.