Returns Supported Clients Sample Returns Supported Clients Sample Parameters Supported Clients Sample Parameters Supported Clients Sample Parameters Supported Clients Sample Parameters Supported Clients Sample Parameters Supported Clients Sample
Nov 26, 2023 13:57
Supported Clients
SmartClient
Property Summary
Number
x
Gets or sets the x position of the agent.
Number
y
Gets or sets the y position of the agent.
Methods Summary
void
setBalloonSize(width, height)
Sets the size of the balloon.
void
setImageURL(url)
Sets a new image for the agent.
void
setLocation(x, y)
Sets the location of the agent.
void
setVisible(visible)
Show/hides the agent.
void
speak(message)
Makes the agent speak.
Property Details
x
Gets or sets the x position of the agent.
//move the agent diagonaly
plugins.agent.x = plugins.agent.x-10;
plugins.agent.y = plugins.agent.y-10;
y
Gets or sets the y position of the agent.
//move the agent diagonaly
plugins.agent.x = plugins.agent.x-10;
plugins.agent.y = plugins.agent.y-10;
Methods Details
setBalloonSize(width, height)
Sets the size of the balloon.
Number
width
;
Number
height
;
plugins.agent.setBalloonSize(width,height)
setImageURL(url)
Sets a new image for the agent.
String
url
;
plugins.agent.setImageURL("url")
setLocation(x, y)
Sets the location of the agent.
Number
x
;
Number
y
;
plugins.agent.setLocation(100,100);
setVisible(visible)
Show/hides the agent.
Boolean
visible
;
plugins.agent.setVisible(true);
speak(message)
Makes the agent speak.
String
message
;
plugins.agent.speak('hello nerd');