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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user