Aller au contenu principal

Recherche

Emit With Values + Signal To Emitted + Respond To Emitter

  • TAPgiles
    Great answers

    Would be useful... Below I discuss the topic, what's possible now, and potential issues Mm would need to resolve in implementing such a feature.

    As you say, most of this can be done currently. My favourite is to use a looped wire, *without* emit with wires. This basically stores whatever value was being sent at the moment it was emitted. So you can pass values to the emitted object like that. Has its caveats, but it's very easy to use at least for straightforward uses--and expands the usefulness of emitters a ton once you know how to do it. [Tutorial]

    I also have other tutorials on how to emit logic to perform some operation and report back--so then you can have that logic only exist while it's needed. In this playlist, check the "Emitting and Destroying Logic" and "Communicating with Emitted Logic" videos. [Playlist]

    If the source is moving around, you could have a tag. And in the emitted object have a block/chip that teleports to that tag so it's always in contact--something like that. As long as another same-named tag doesn't wind up closer somehow (theoretically impossible if it's inside a collidable object, eg. a puppet) then the teleporter will continue to follow that tag, and stay in communication through wifi or whatever.

    When an object is emitted from a possessed object, it is "owned" by the same player. That's what all the "consider players" stuff is about; detecting that ownership of possessed objects and objects those possessed objects emitted. [Docs] So the bullet example is very easy currently.

    I think a potential issue would be normally you will emit may of the same object from the same emitter. And so they'd all have different message values being sent back at all times (even if it's 0 most of the time). So those values would be blended in some way, I assume?

  • Skn3--

    Some of the bits are doable quite easily. I think the benefit with a dedicated system is that MM could remove any form of lag/tag-detect/wireless/etc. A much easier to use feature for everyone. It’s akin to the new variable scope stuff. Instead of forcing us to deploy maybe 5-6 different techniques or widgets to make ”local variables”, we can now just scope variable chips! So much cleaner/cheaper. Easier for all people to understand.

    The signals passing back is an issue yeah. But no more so then how we have to do it now. I had pondered since posting. I think in its current state, it could still be useful if it just had the same blending options. As long as the emitted logic only sends a signal back when needed. I’m sure there are better solutions to add new functionality to Dreams instead. Something like a message queue? Or list? All signals are queued in a new widget and then the logic has to manually pulse (next in list) to fetch the next value. A built in widget like that could really add power to dreams!

Vous devez vous connecter pour laisser un commentaire.