Syntax: Select all
import commands.typed
import effects
import filters.recipients
import players.entity
@commands.typed.TypedClientCommand("ball")
def ball(cmdinfo):
recipients = filters.recipients.RecipientFilter()
recipients.update(cmdinfo.index)
pos = players.entity.Player(cmdinfo.index).origin
print(pos)
effects.ball(recipients, pos, 10)
Nothing appears when the command is run, however. Am I doing this correctly? This is on TF2, although I do have my graphics settings fairly low so maybe I just can't see it (I doubt it, since I can still see particle effects and what not)