Hi,
Using getlooktodistance to select a hotspot when middle of screen is great, but if you have more than one hotspot in the area it's a problem for using onover & onout if you want only one to be activated (the nearest one from the middle)
Klaus code is :
Code
<action name="testhotspots">
for(set(i,0), i LT hotspot.count, inc(i),
getlooktodistance(d, hotspot[get(i)].ath, hotspot[get(i)].atv);
if(d LT 10,
highlight_hotspot(get(i), get(hotspot[get(i)].name));
,
background_hotspot(get(i), get(hotspot[get(i)].name));
);
);
</action>
Is there a way to check witch one is the nearest to call onover on this one and onout and all the other ones ?
THX !!!!