Block certain actions like teleporting?Solved

[HURTWORLD V2]

Hi everyone!

I want to block actions like teleport, home when in raid base area with c4. So how can I do it. Help me please.

Thanks very much

You can use OnEntitySpawned hook and catch the players around the c4 or raid drill and store them in a dictionary with their id and date time. Then just make a boolean method checking the time difference.

Once u have the plugin working u can access the boolean method u made with the teleport plugin by using the PluginReference attribute https://umod.org/documentation/api/dependencies

Locked automatically