question

William RDS avatar image
0 Likes"
William RDS asked jing.c answered

How I can send a message to change the value of another object?

I would like to make a model that a specific object sends the message to another with a certain value. For example: a separate sends message to a source with a number of items that must be released

message triggermessage param
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
jing.c avatar image
0 Likes"
jing.c answered

Hi, William.

The example you proposed is not only about changing the value of object, but also about controlling the logic of source.

I advice you to add some labels with closeoutput() and openoutput() command in different trigger of source. In that case, you can change the value of those labels and send a message to open the output of source to achieve what you want.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.