Now I searched both here and at the Official Forums and couldn't find any thing to create a continuous animation for the radar on the blockhouse that i am currently refurbishing while recovering from a sickness (just attacking the simpler addons these days
)
Anyway here goes:
If people can remember the old radar station I made eons ago.. which was an ambitious project using tank classes to get the animated radar antenna and screen to work.. Once 1.91 came out I have been asked if I was going to update the addon. Well I thought I might, and also make the addon more user friendly in both editor and in map making. The animation is made continuous using the following code:
In your config.cpp Class Animations:
class Radar
{
type="rotation";
animPeriod=0.01;
selection="radar";
axis="osaradar";
angle0=0;
angle1 = 6.283161;
};
The addon init eventhandler:
init = [_this select 0] exec "\addonname\radar.sqs";
And the animation code in radar.sqs:
_radar1= _this select 0
#Reset
_PosRadar =0
_radar1 animate ["radar", 0]
?(not alive _radar1):goto "exit"
#loop
~0.01
_posradar= _posradar + 0.010
_radar1 animate ["radar",_PosRadar]
?(_posradar<=0.99): goto "loop"
goto "reset"
#Exit
exit
The above gives a nice steady rotation which doesn't reverse rotate, and continues until the radar is dead.
And a piccy: