Checking if spot is active

  • Hello again,
    I can't figure out how to check if a certain spot is active.

    I tried this for example

    Code
    if(plugin[map].spot(xyz).active === true,action(addaudio););

    But it doesn't work.
    Is there any way to do this?

    Thanx!

  • Hi,

    that:

    Code
    if(plugin[map].spot[xyz].active === true,action(addaudio););

    would be the correct syntax,
    but at the moment it will only work for the init-state (but that will be changed/fixed in the next version),

    best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!