#how do I make something that teleports all players to me

1 messages · Page 1 of 1 (latest)

crude flume
#

Events

prime karma
#

set position at you

prime hare
#

sure do love the detail

outer patrol
# prime hare sure do love the detail

Place a event definition and give it a name EXAMPLE TP ALL

Place a event sender, configure it to the event you made, and also choose the ALL target

Place a event receiver, configure it to the event you made, and wire it to a set position

Once you execute the event sender ALL players will receive it at the event receiver

If you need help with the actually teleporting part lmk
@prime hare

prime hare
#

I do @outer patrol

#

I need help with the actual tp part @outer patrol

maiden shard
prime hare
#

yeah you lost me on that one buddy

maiden shard
prime hare
#

didn't understand it

maiden shard
#

Send your position with the event.

#

You can configure the event's definition to add data ports, add a Vector3.

#

In the event sender, send your position as the Vector3

outer patrol
#

I knew i forgot something

#

That what it was

prime hare
#

uhm

#

then what

maiden shard
#

On the events receiver, just set position of the Local Player to the Vector3 you sent.

#

Local Player is "me", so if every player does it, they'll set their position to yours.

prime hare
#

what about the other 2 event things

#

like event sender and event def

#

vector3

maiden shard
#

What.

prime hare
maiden shard
#

The event definition defines an event you can send and receive, send the event whenever you need it.

prime hare
maiden shard
#

Have the target be the local player, and make sure to configure the event sender to send to Others, which is everyone but the sender.

#

Again, have the Vector3 on the sender be your position.

prime hare
#

yeah didn't get that either

maiden shard
#

Use a Get Position on the Local Player for the Vector3 on the Event Sender.

#

Configure the Event Sender to send to Others.

#

Have the Target on the Set Position be the Local Player.

prime hare
maiden shard
prime hare
#

where

maiden shard
#

On the empty port on the Get Position.

prime hare
maiden shard
#

Yeah, probably don't have to waste another chip but that works.

#

Did you configure the Event Sender to send to Others?

prime hare
#

yeah

maiden shard
#

Should be good then CheerGeneral

prime hare
#

then what do I attach event sender to

maiden shard
#

Did you mean the Input or Output Execution of the Event Sender?

prime hare
#

input

maiden shard
#

Use whatever you want to execute it, a button, trigger volume, etc...

prime hare
#

yeah for this case its for an admin menu on watch

#

yo W it actually worked

placid gale
# prime hare yo W it actually worked

There is also another way that doesn’t use up as much network heat and would optimize it. Put down a get all player chip and a foreach chip, attach the get all players to the for each and then get a set position and a get position. If your using a button for the execution for the typing, just connect the button exec to the for each chip. Then connect the foreach chip to set position and have the top foreach exec connect to the exec. And then have a get position chip for the player that pushed the button, an admin, and press the button and it should work

maiden shard
#

Never do actions for other players using a For Each, use events instead.

placid gale
#

But if you have an event sender for all players wouldn’t that use up the same if not more since the authority would be telling everyone’s clients the event?

maiden shard
#

Instead of telling every player "Go to this position" it tells every player to "Execute this" and they calculate it themselves.

placid gale
#

Ahh

#

That makes sense

prime hare
#

idrc about net