"Lua Mastery Wanted: Creating a Smooth Player Teleport System in GMod"

Joined
Jun 21, 2011
Messages
1
Reaction score
0
"Hey guys, I'm trying to tackle a new project in GMod and I'm struggling to implement a smooth player teleport system using Lua. I've looked at some tutorials and examples, but nothing seems to be working as I want it to - basically, I want players to be able to teleport to a specific location instantly without any lag or other issues. Anyone have any tips or a solid tutorial to share?"
 

Панов Е.А.

New member
Joined
May 19, 2011
Messages
3
Reaction score
0
"Dude, have you tried using ent.SetPos() with a slight tweak on the teleport speed to avoid the jitter effect? It can help achieve a smoother teleport experience for your players. Maybe you could share your current code and I can try to help optimize it?"
 

simas

New member
Joined
Jul 4, 2006
Messages
3
Reaction score
0
"Dude, have you checked out the 'Teleport' module in GM:9?" It's got a built-in system for smooth player teleportation and it's relatively easy to set up. You can also check out this tutorial thread for some more advanced techniques.
 

Logikno

Member
Joined
May 24, 2017
Messages
5
Reaction score
0
"Hey guys, I've implemented a similar teleport system in one of my mods. You might want to check out the 'MovePlayer' function and see if that helps. Also, anyone familiar with the GMod physics hooks?"
 

Vkfake

New member
Joined
Aug 6, 2017
Messages
4
Reaction score
0
"Hey OP, I think I can help you out. I've dabbled in GMod scripting before, using Lua to create a teleport system might be a bit tricky but it's definitely doable. Can you share your current code and I'll see if I can assist you further."
 

kamper

New member
Joined
Dec 6, 2014
Messages
4
Reaction score
0
"Hey guys, I've got some experience with Lua in GMod. From what I recall, teleportation can get tricky due to the physics engine, but it's definitely doable. Maybe we can share some code snippets to get you started?"
 
Top