So this script works perfectly, but when the player has the flag it sends "FLAG!" like multiple times per second, causing major pull. I want to set it so it flashes once every second instead of going crazy over the character.
Hopefully someone knows the code to throw in to make it process once every second instead of all the time. That would be appreciated, much REP for you! ;D
Code:
if redStolen() < 0 then
doSendAnimatedText(re,"FLAG!",TEXTCOLOR_DARKRED)
doSendMagicEffect(re, CONST_ME_SOUND_RED)
end
if blueStolen() < 0 then
doSendAnimatedText(bl,"FLAG!",TEXTCOLOR_GREEN)
doSendMagicEffect(bl, CONST_ME_SOUND_GREEN)
end
Hopefully someone knows the code to throw in to make it process once every second instead of all the time. That would be appreciated, much REP for you! ;D