How to send message to last emitted object

so in my game Nightclub Skirmish, you can throw weapons and that’s supposed to do damage, however I have recently found out you cannot send messages to emitted objects and now I am in trouble because I need it so that the emitted weapon can be sent a message so it could know that it is in it’s thrown state what do I do?

You can send a message to Emitted objects once, right at the moment they are created. Just set the message to send to all objects of the emitted object type, then connect that message directly to the “out” of the Emit block. Next, inside the emitted object, have the mailbox connected to a switch that turns itself off (and connect whatever you want the message to do to that switch). This will allow the message to be sent to all of the emitted objects, but only the one that you just emitted will actually be able to do anything with it, since the others will have already gotten the message and turned their switches off.
Hopefully that makes sense (if it doesn’t I can make an example or explain further).
Now if you need to send a message to an emitted object at some moment other than right when it’s created, it is still possible, but slightly more complex (let me know if that’s what you actually want and I can try to help you set that up)

1 Like

Makes sense! I’ll test this out soon! Thanks!

1 Like