Sending message to a script in a collection in a proxy (SOLVED)

Yes its another question from me

Im trying to send a message to the script in the controller in the level collection in the game proxy(the collection in the game proxy is called level.collection)

I have tried something like this

"/control#gameproxy/level/controller#script"
or like this
"/control#gameproxy#level#controller#script"
How do I send a message to this kind of path

1 Like

You simply say
yrcollectionname : /controller/script
to pass a message to your game obect in a collection called yourcollectionname…
you see and change the collection name by clicking here::

2 Likes

BTW you can put the following print statement in the init function of a script and it will display the url of that script - which you can then use to send messages to.

print(msg.url())
8 Likes

Really useful videos for understanding Message Passing:


8 Likes

this is a really good trick thanks :slight_smile:

2 Likes