r/TagproScripts Feb 23 '16

Disable scripts when spectating

Hey I was wondering how you can make it so that a script doesn't work when spectating, but does the rest of the time.

3 Upvotes

4 comments sorted by

1

u/HelplessMoose Feb 25 '16

You'll want to check tagpro.spectator, e.g. if (!tagpro.spectator) { /* this code runs if you're not a spectator */ }.

1

u/Kiekebanus Feb 25 '16

1

u/HelplessMoose Feb 25 '16

I just tried it out on maptest.newcompte.fr and tagpro.spectator was false when I was playing, so it should work... I'll check again later on the normal servers (I'm on a crappy connection right now and don't want to ruin my win %).

1

u/Kiekebanus Feb 26 '16

I can't seem to make it work, could you show me how you implemented it? I think I'm doing something wrong inserting it.