_obj = _this select 0
_ind_1 = _this select 1
_ind_2 = _this select 2

_pos = getpos _obj
_obj setpos _pos
_obj setvelocity [0,0,0]

_v_1 = [0,0,0]
_v_2 = [0,0,0]

~0.1

#1
_obj setpos _pos
_obj setvelocity [0,0,0]
_v_1 set [_ind_1, 1]
_v_2 set [_ind_2, 1]
_obj setvectordirandup [_v_1, _v_2]
?(player distance _obj) < 10: showdebug [format ["DEBUG (showDebug [String, Time (ms)]) 'SetVectorDirAndUp': %1 (VectorDir) %2 (VectorUp)", vectordir _obj, vectorup _obj], 6000]
?!(isnull (nearestobjectdistance [_obj, "camera", 10])): showdebug [format ["DEBUG (showDebug [String, Time (ms)]) 'SetVectorDirAndUp': %1 (VectorDir) %2 (VectorUp)", vectordir _obj, vectorup _obj], 6000]
~1
_obj setpos _pos
_obj setvelocity [0,0,0]
_v_1 set [_ind_1, -1]
_v_2 set [_ind_2, -1]
_obj setvectordirandup [_v_1, _v_2]
?(player distance _obj) < 10: showdebug [format ["DEBUG (showDebug [String, Time (ms)]) 'SetVectorDirAndUp': %1 (VectorDir) %2 (VectorUp)", vectordir _obj, vectorup _obj], 6000]
?!(isnull (nearestobjectdistance [_obj, "camera", 10])): showdebug [format ["DEBUG (showDebug [String, Time (ms)]) 'SetVectorDirAndUp': %1 (VectorDir) %2 (VectorUp)", vectordir _obj, vectorup _obj], 6000]
~1
goto "1"