Hi guys.
I try to create a bluelight, which is turn around all the time, when the player start it. It should stop the roation, when the player stop it.
After a lot of hours, i know, that i've to use a script for that. SourceAddress="loop"; is not working with source="user";. I tryed it with source="time"; the loop works.
So far.
Now i want to write a script. My target is to start the animation and if the animation value = 1, then set back the animation to 0.1. Not to 0, because i've a sound with this rotation.
But to set back the value to 0.1 is not working in my script. There i need help.
ThxCode:if (isDedicated) exitWith {}; private ["_blah","_bommel"]; _blah = _this select 0; _bommel = _blah animationPhase 'bluelight'; hintSilent "script start"; //test while {true} do { if (_bommel == 1) then {_blah set [animationPhase 'bluelight', 0.1];}; sleep 0.1; };
HOME
Reply With Quote



