new command getclosestent

getclosestent
  Returns the entity index number of the closest entity (or of the
  pinned entity, if one exists). Returns -1, if no entities are on the map.
  Returns always exactly the entity, that edit commands like delent
  will use next.

DOCREF getclosestent
This commit is contained in:
ac-stef
2016-02-07 18:34:32 +01:00
parent ecf178866e
commit 7f86ae8d9f
+1
View File
@@ -174,6 +174,7 @@ int closestent() // used for delent and edit mode ent display
}
return best;
}
COMMANDF(getclosestent, "", () { intret(closestent()); });
void entproperty(int *prop, float *famount, int *unscaled)
{