dear forummembers.
Thanks to your help, I have come this far! everything works.
now I've been trying for several days, to get the getlooktodistance function more precisely.
the goal would be to be able to set a range for ath respectively.
I tried a solution like in the 1st code
to build into the 2nd code. but without success
1st code
2st code
Code
<events name="check_viewathotspot" keep="true" onviewchanged="slidingdoor"/><action name="slidingdoor">
for(set(i,0), i LT hotspot.count, inc(i),
copy(hs,hotspot[get(i)]);
hs.getcenter(hs_h, hs_v);
getlooktodistance(d, hs_h, hs_v);
subtxt(destVar,get(hs.name),0, 1);
if(destVar == "x",
if(d LT 40,
tween(hotspot[get(hs.name)].ox, get(hotspot[get(hs.name)].so) ,3);
,
tween(hotspot[get(hs.name)].ox, get(hotspot[get(hs.name)].sc) ,3);
);
);
);
</action>
Display More
wbr klaus