What is the better approach? For a server.
I want to paralyze/release a player.
Completely stop the player from moving [SOLVED]
Completely stop the player from moving [SOLVED]
Last edited by runs on Fri Jul 30, 2021 16:07, edited 1 time in total.
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: Completely stop the player from moving
The best approach is to attach the player to an entity. This forces the player object into server side authority, rather than client side
https://gitlab.com/rubenwardy/classroom ... freeze.lua
https://gitlab.com/rubenwardy/classroom ... freeze.lua
Re: Completely stop the player from moving
Ok, OK, thank you! I will literaly to copy it :-)
Re: Completely stop the player from moving [SOLVED]
Anyway I would like a player_set_velocity(nil) function as suggested here:
viewtopic.php?t=21432
or player:freeze()
or let a player be a entity to be controlled.
viewtopic.php?t=21432
or player:freeze()
or let a player be a entity to be controlled.
Who is online
Users browsing this forum: No registered users and 8 guests