turning off mapspots (spots)

  • hi, one more question to mapspots - <spot>
    I want them to turn on and off by an action. I tried things like switch (plugin[skin_map].spot[xy].visible) or set(plugin[skin_map].spot[xy].alpha, 0) but nothing seems to make my spots disappear. What am I doing wrong?

    thanks

    Edited once, last by Muxi (April 10, 2015 at 7:22 PM).

  • ok, now I got it all *thumbsup*

    to remove all scene-mapspots:

    Code
    for(set(i,0), i LT scene.count, inc(i),
    			if(scene[get(i)].lat,
    				txtadd(spotoff, 'spot', get(i));
    				plugin[skin_map].removespot(get(spotoff));
    				);
    			  );

    to bring them back again use the skin_addmapspots-action but adding the map-plugin-name before the addspot-action:

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!