question

Justyne K avatar image
0 Likes"
Justyne K asked Steven Hamoen answered

Understanding of coding

senddelayedmessage(outobject(current, 1),0,current,4,0,0);

flexsim commands
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

·
Steven Hamoen avatar image
2 Likes"
Steven Hamoen answered

@Justyne K

senddelayedmessage: calls the onmessage trigger of an object after a certain delay.

outobject(current, 1): is the toobject. The object which onmessage trigger is triggered. In this case it is the object connected to the output port 1 of the current object (current is the object where this code is written on).

0: is the delay time. In this case 0 but if you enter 10, the onmessage trigger of the outobject(current,1) is triggered in 10 seconds

current: this is the fromobject or the object where the message is send from

4, 0, 0: are parameters you can use to pass information to the onmessage trigger.

Please also check the Command help of flexsim or senddelayedmessage on answers.flexsim.com

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.