Closed
Description
Entity.teleport doesn't work (for Players at least). Player loses all weapons and is unable to move after calling teleport.
sp info
[Source.Python]
IMPORTANT: Please copy the full output.
--------------------------------------------------------
Checksum : b9ab18d02d2d57865788b80b30244db2
Date : 2022-07-09 18:26:54.948099
OS : Windows-10-10.0.19041
Game : tf2
SP version : 714
Github commit : d0ffd8ccbd1e9923c9bc44936f20613c1c76b7fb
Server plugins:
00: Source.Python, (C) 2012-2021, Source.Python Team.
SP plugins:
00: testplugin
--------------------------------------------------------
testplugin:
from events import Event
from players.entity import Player
from mathlib import Vector
from listeners.tick import Delay
@Event("player_spawn")
def on_player_spawn(game_event):
player = Player.from_userid(game_event["userid"])
player.teleport(Vector(0,0,0))
# same happens with:
# Delay(1, player.teleport)
Metadata
Metadata
Assignees
Labels
No labels