Sign in to follow this  
Belial95

Spectator event & Printed Messages Appearance time

Recommended Posts

Hello,

I am trying to use endon("event") to kill a function, but the problem is, that by using

self.sessionteam = "spectator";
self.sessionstate = "spectator";
self [[level.spawnSpectator]]();

the endon("joined_spectators") only works, when I join spectator by myself, not when I am moved to spectator by the server. I can tell this, since I added self IprintLnBold() to the different functions, to understand how it works and at what function the script atm is. Hence, if I join the spectators all functions stop, but when I am moved to spectators, there is still text being written by IprintLnBold(). I am experimenting with the AFK_Camp_Watcher: script from Link. Also, is there way to set a given time for 

self IprintLnBold

to be displayed or a workaround, that "kills" it?

Thank you for reading!

Share this post


Link to post
Share on other sites

Just define a loop check if someone is spectator, just return the function.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this