From 1bb8a0fb1842389d708154971af3dfcb555924e6 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Wed, 28 Feb 2018 12:54:49 +1300 Subject: [PATCH] Fix up entity script calling JSDoc --- libraries/entities/src/EntityScriptingInterface.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/entities/src/EntityScriptingInterface.h b/libraries/entities/src/EntityScriptingInterface.h index 0bd8172349..41002b9917 100644 --- a/libraries/entities/src/EntityScriptingInterface.h +++ b/libraries/entities/src/EntityScriptingInterface.h @@ -285,8 +285,10 @@ public slots: /**jsdoc - * Call a method in a client entity script from a client script or client entity script. The entity script method must be - * exposed as a property in the target client entity script. + * Call a method in a client entity script from a client script or client entity script, or call a method in a server + * entity script from a server entity script. The entity script method must be exposed as a property in the target client + * entity script. Additionally, if calling a server entity script, the server entity script must include the method's name + * in an exposed property called remotelyCallable that is an array of method names that can be called. * @function Entities.callEntityMethod * @param {Uuid} entityID - The ID of the entity to call the method in. * @param {string} method - The name of the method to call. @@ -296,7 +298,7 @@ public slots: /**jsdoc * Call a method in a server entity script from a client script or client entity script. The entity script method must be - * exposed as a property in the target client entity script. Additionally, the target client entity script must include the + * exposed as a property in the target server entity script. Additionally, the target server entity script must include the * method's name in an exposed property called remotelyCallable that is an array of method names that can be * called. * @function Entities.callEntityServerMethod