#how do I make something that teleports all players to me
1 messages · Page 1 of 1 (latest)
set position at you
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
Send your position with the event, and have the players respawn there.
yeah you lost me on that one buddy
How
didn't understand it
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
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.
What.
The event definition defines an event you can send and receive, send the event whenever you need it.
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.
yeah didn't get that either
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.
Use Get Local Player
where
On the empty port on the Get Position.
Yeah, probably don't have to waste another chip but that works.
Did you configure the Event Sender to send to Others?
yeah
Should be good then 
then what do I attach event sender to
Did you mean the Input or Output Execution of the Event Sender?
input
Use whatever you want to execute it, a button, trigger volume, etc...
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
No. That will use more NET and is less optimized.
Never do actions for other players using a For Each, use events instead.
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?
No, again, it would use less.
Instead of telling every player "Go to this position" it tells every player to "Execute this" and they calculate it themselves.
idrc about net