You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
fromeventsimportEventfromplayers.entityimportPlayerfrommathlibimportVectorfromlisteners.tickimportDelay@Event("player_spawn")defon_player_spawn(game_event):
player=Player.from_userid(game_event["userid"])
player.teleport(Vector(0,0,0))
# same happens with:# Delay(1, player.teleport)
The text was updated successfully, but these errors were encountered:
Game data is likely outdated. I will try to update them tonight, or tomorrow. In the meantime, you could use Player.snap_to_position which is, not only much faster, but also not relying on any offset/signature.
Entity.teleport doesn't work (for Players at least). Player loses all weapons and is unable to move after calling teleport.
testplugin:
The text was updated successfully, but these errors were encountered: