Logic Gadgets: Wireless Receiver

 

Icon
Name of gadget Wireless Receiver
Section Sensors & Input
Number of Tweak pages 2
Author LadylexUK, QuietlyWrong
Last updated 2 March 2020 [v2.05]

Description

This gadget is used in combination with the Wireless Transmitter. It receives signals wirelessly from the specified Transmitter and outputs them along any wires connected to its output. Furthermore it provides the option to include a detection range within which it is effective.

Having wireless connections can be great for keeping your scenes tidy, especially when used over longer ranges or from one transmitter to many receivers. It’s also good for modular construction, saving you from having to wire up many clones of the same object. However the downside is that there is a short delay of 1/30th second (one in-game logic “tick”) between sending and receiving the signal. For time critical signals, like buttons in a bullet-hell shoot-’em-up, that delay might mean a player complaining of “laggy” controls so in those circumstances a wired connection is generally preferred.

If you have multiple Transmitters, the Receiver’s output will depend on the nature of the input wire. If it is a simple, single-wire input such as a numeric value, the output will be the highest of all the corresponding Transmitters’ inputs. For fat wires, when split out, each separate component’s output will be the average (mean) value for all of the corresponding Transmitters.

Example Tutorial (from Media Molecule)

Same as for wireless transmitter:

  1. Let’s make an earthquake.
  2. Grab a wireless transmitter, wireless receiver, timer and a camera shaker and put them in your scene.
  3. Tweak the wireless transmitter and give it a name (call it “quake”)
  4. Tweak the wireless receiver and enter “quake” where it says transmitter name. Now these two can communicate with each other.
  5. Set the zone shape of the wireless receiver to scene. This means that it will pick up the transmission from anywhere.
  6. Connect the timer output to “Signal to Receiver” on the wireless transmitter.
  7. Connect signal from transmitter on the wireless receiver to the power port on the camera shaker.
  8. Hit start time.
  9. As the counter counts up to its target time (the default is 5 seconds, unless you changed it) the signal it sends is increasing numerically which means the power to the camera shaker increases.

Tweak Menus

Tweak Menu 1: Properties & I/O

Image: Beta. Confirmed near identical in v2.05 (colour change only)
  1. Tweak Menu page 1: Properties & I/O
  2. Transmitter name
  3. Signal from Transmitter
    3b. Any wired output (same as Transmitter’s input)
  4. Signal to Transmitter
    4a. Any wired input
  5. Power
  1. Menu page indicator
  2. Transmitter name
    Type in the name of the transmitter you wish to receive a wireless signal from, or use d-pad up and down buttons to pick from the list of those gadgets currently in the level. Note that if you fail to select a name, it will only receive signals from unnamed transmitters (those with the default name) but will sent its own input signals to all transmitters.
  3. Signal From Transmitter
    This is where you can connect a wire to pass the wirelessly received signal to any other gadgets or tweak menus.
  4. Signal To Transmitter
    This is where you can connect an input signal to be sent back to the relevant Transmitter gadget(s).
  5. Power
    This is where you turn the gadget on/off. If powered by a value between 0 and 1, the Signal from Transmitter will be multiplied by that value.
Tweak Menu 2: Zone Size

Image: Beta. Confirmed near identical in v2.05 (colour change only)
  1. Tweak Menu 2: Zone Size
  2. Zone Shape
  3. Zone Size
    3a. Numeric input(s)
    3b. Numeric output(s)
  4. Zone Falloff
    4a. Numeric input(s)
    4b. Numeric output(s)
  5. Power
  1. Menu page indicator
  2. Zone Shape
    The receiver can have a limited range indicated by a zone attached to the gadget (like with a trigger zone). The shape can be specified here.

    • Sphere
    • Cube
    • Cylinder
    • Cone
    • Ellipsoid
    • Scene
      Choose this option if you do not want a limit to the range and you want to receiver to get a transmission from anywhere in the scene.
  3. Zone Size
    This determines the range area for the Zone Shape in metres. It is deactivated if you choose Scene. For shapes other than Sphere and Scene, you can resize the zone in X, Y and Z axes. Sphere (as shown) only has one variable that can be changed, effectively the radius.
  4. Zone Falloff
    This is an extra range that is added to the outside of your zone and can be used to receive a more limited signal that increases as the transmitter moves closer to the zone proper.
  5. Power
    This is where you turn the gadget on/off.

Lex Tips

QW’s Tips

If you have several Transmitters and one Receiver, how do you know what signal will be output by that Receiver? As mentioned above, if the signal is a simple, single-wire input like a numeric value, the Receiver will report the highest value among all the Transmitters. Technically, it only takes the magnitude of the signal into account, not its sign, so that while a signal of +3 will take precedence over ones of +2 or -2, a signal of -3 will take precedence over ones of +2 or -2.

Things get more complicated with fat wires, because the direction of transmission (Transmitter to Receiver or vice versa) appears to play a part. A fat wire is a bundle of values that have been joined together (whether by their originating gadget or by a Combiner gadget). Fat wires are visually distinctive, resembling multicoloured twisted wire.

If a Wireless Receiver is receiving a fat wire signal from several Wireless Transmitters, the outputs will be the average (mean) values. If you are careless enough to have Transmitters sending signals with different numbers of wires, any ‘missing’ wires that are within detection range will be treated as zeroes for the purpose of the average. Transmitters not in the detection Zone will not count towards the average.

However if you have a Transmitter receiving signals from multiple Wireless Receivers, fat wires behave differently. In this direction, each component of the signals is compared and the value with the highest magnitude is taken for each component.

Useful Tutorials

Beginners Guide to Wireless Transmitters and Receivers

Wireless Interactions

Latest Update

v1.02 Menus confirmed same. Added link
v2.05 Colour change to match other Sensors & Input gadgets. Text updated with more detail.

Comments and Feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: