Move player behind another
Posted: Mon May 21, 2018 12:24 am
My vector math isn't the best :P
I want to be able to position a player behind another. This code would have worked, except for the player clipping on enemy players :\
E: I think I can do this by converting to/from rectangular and polar coordinates...
I want to be able to position a player behind another. This code would have worked, except for the player clipping on enemy players :\
Syntax: Select all
@SayCommand('test')
def test(command, index, teamOnly):
player = Player(index)
if player.get_view_player():
target = player.get_view_player()
target.origin = player.origins
target.set_view_angle(player.get_view_angle())
Repeat(playerPush, args=(target, None)).start(.05, 1)
def playerPush(player, notUsed=None):
player.push(-500,-500)
E: I think I can do this by converting to/from rectangular and polar coordinates...