.: Send Message To Host - PART 3 :.

Now it's time to build our event map as show above.

Auto updating expression :

1) Add a world step to the event map.

2) Connect an execute expression to this world step.

3) Connect the camera expression to the execute expression.

4) and for last, we connect the Send Message To Host to the world step.

 

The Send Message To Host properties :

We drag and drop the camera -> Cam_result property to the Message input, and check the "Message is a property", this checking allow Cult3D to get and send any property to the Javascript, if you just want sending a string text message, write it into Message input and don't check this box.

Add a click object to send a message string :

1) Add a mouse click to event map and connect the object you would like to click to the mouse.

2) Add and connect a execute expression to the mouse click.

3) And for last connect the object expression, here the Message_container, to the execute expression.

Now go to part 4 to see how to add and write the Javascript into the HTML page.

Go to part 1 - Go to part 2 - Go to part 3 - Go to part 4 - See final result