How to make a client use a teleport and add a cooldown to that client only

So im trying to make a portal blueprint where a player can begin overlap on a box collider and teleport to another portal. And I want to add a cooldown to the client that used the portal only so other clients can travel to. I want to add this cooldown to the player to prevent him from spamming portals and teleporting back and forth. I also want to maintain the server authority on the set location node to prevent cheating.

I tried this but it adds the cooldown to every client.

I dont know how to add this cooldown locally only and maintaining server authority

Hello, and welcome!

By using an Active flag on the portal, you are of course disabling the portal entirely and for everyone.

Are you only wanting to prevent the player from using that particular portal for 5 sec, or any portals?
If the former, maybe use a map of player-controller => bool on the portal, so you can lookup the player trying to use the portal and determine if it should activate.
If the latter, move this controlling var into the character.

Thanks, it worked out great

1 Like