I'm trying to push a client in a direction
What's equal to TeleportEntity(client, NULL_VECTOR, NULL_VECOTR, Velocity) in sourcepython?
What is equal to TeleportEntity()
Re: What is equal to TeleportEntity()
Syntax: Select all
from mathlib import Vector
...
player.teleport(velocity=Vector(1000, 0, 0))
It's also worth mentioning that you can use base_velocity to push the player:
Syntax: Select all
player.base_velocity = Vector(1000, 0, 0)
Setting base_velocity adds another vector to player's current velocity, while teleporting player sets player's velocity to that vector.

My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam
Hail, Companion. [...] Hands to yourself, sneak thief.

Re: What is equal to TeleportEntity()
Thank you for an example!
Return to “Plugin Development Support”
Who is online
Users browsing this forum: Bing [Bot] and 83 guests