From fbae2d902b82d6838d36775b9f946d9a646ce451 Mon Sep 17 00:00:00 2001 From: Kalila L Date: Wed, 7 Oct 2020 20:40:29 -0400 Subject: [PATCH] Update API docs to specify entity-server-script findEntities caveat. --- libraries/entities/src/EntityScriptingInterface.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libraries/entities/src/EntityScriptingInterface.h b/libraries/entities/src/EntityScriptingInterface.h index a8770bbd33..1954802828 100644 --- a/libraries/entities/src/EntityScriptingInterface.h +++ b/libraries/entities/src/EntityScriptingInterface.h @@ -709,6 +709,8 @@ public slots: /**jsdoc * Finds all domain and avatar entities that intersect a sphere. + *

Note: Entity Server Scripts will only find entities that have a server script + * running on them. You can apply a dummy script to entities that you would like found in a search.

* @function Entities.findEntities * @param {Vec3} center - The point about which to search. * @param {number} radius - The radius within which to search. @@ -723,6 +725,8 @@ public slots: /**jsdoc * Finds all domain and avatar entities whose axis-aligned boxes intersect a search axis-aligned box. + *

Note: Entity Server Scripts will only find entities that have a server script + * running on them. You can apply a dummy script to entities that you would like found in a search.

* @function Entities.findEntitiesInBox * @param {Vec3} corner - The corner of the search AA box with minimum co-ordinate values. * @param {Vec3} dimensions - The dimensions of the search AA box. @@ -734,6 +738,8 @@ public slots: /**jsdoc * Finds all domain and avatar entities whose axis-aligned boxes intersect a search frustum. + *

Note: Entity Server Scripts will only find entities that have a server script + * running on them. You can apply a dummy script to entities that you would like found in a search.

* @function Entities.findEntitiesInFrustum * @param {ViewFrustum} frustum - The frustum to search in. The position, orientation, * projection, and centerRadius properties must be specified. The fieldOfView @@ -749,6 +755,8 @@ public slots: /**jsdoc * Finds all domain and avatar entities of a particular type that intersect a sphere. + *

Note: Entity Server Scripts will only find entities that have a server script + * running on them. You can apply a dummy script to entities that you would like found in a search.

* @function Entities.findEntitiesByType * @param {Entities.EntityType} entityType - The type of entity to search for. * @param {Vec3} center - The point about which to search. @@ -764,6 +772,8 @@ public slots: /**jsdoc * Finds all domain and avatar entities with a particular name that intersect a sphere. + *

Note: Entity Server Scripts will only find entities that have a server script + * running on them. You can apply a dummy script to entities that you would like found in a search.

* @function Entities.findEntitiesByName * @param {string} entityName - The name of the entity to search for. * @param {Vec3} center - The point about which to search.