[Tutorial] Proper Multiplayer Linetrace from camera

For those wanting to see the full trace setup.

This setup prevents client key spamming (interact key) from saturating the network (mostly). It’ll only call the server if conditional criteria are met.

Could beef this up a bit by calling a simple event in the door class that turns interactive collisions on/off. Call it locally on successful trace hit. Re-enable via automation in the class when the door finishes opening/closing. Could use BP interface for this. I’d look real hard at a potential backup plan if the servers hit misses or heavy packet loss. Might end up with a locked door.

Edit… Example disable w/backup plan

1 Like