_targetX = _this select 0; _targetY = _this select 1; _valueX = wind select 0; _valueY = wind select 1; _counter = 0; if (isMultiplayer) then { diag_log "DEDICATED SERVER"; } else { diag_log "SINGLEPLAYER"; }; diag_log format ["Start Values: [%1,%2,true]",_valueX,_valueY]; diag_log format ["Target Values: [%1,%2,true]",_targetX,_targetY]; setWind [_targetX,_targetY,true]; while {(_valueX != _targetX) || (_valueY != _targetY)} do { _valueX = wind select 0; _valueY = wind select 1; diag_log wind; systemChat format ["%1",wind]; _counter = _counter + 5; sleep 5; }; if((_valueX == _targetX) && (_valueY == _targetY)) then { diag_log ["setWind needed %1 seconds to apply changes",_counter]; systemChat format ["setWind needed %1 seconds to apply changes",_counter]; diag_log "***************END***************"; }; if(_counter > 300) exitWith {diag_log "Timout reached"};