This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

object correction
#2
Your script is executing itself when the status value is different from control. It executes two instances where both check for an opposite value. This means that one of them will fail and then will execute the same thing again.

If a single on/off or off/on is enough you can add this check to the beginning of you script. It will stop execution if this script is triggered by an event script.
Code:
if event.sender == 'se' then
  return
end

Otherwise you can use a resident script to check if status and control values are different every X seconds.
Reply


Messages In This Thread
object correction - by benanderson_475 - 04.11.2023, 09:32
RE: object correction - by admin - 06.11.2023, 06:34

Forum Jump: