_obj = _this select 0
_ind = _this select 1

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

_v = [0,0,0]

~0.1

#1
_obj setpos _pos
_obj setvelocity [0,0,0]
_v set [_ind, -1]
_obj setvectorup _v
?(player distance _obj) < 10: showdebug [format ["DEBUG (showDebug [String, Time (ms)]) 'SetVectorUp': %1 (VectorUp)", vectorUp _obj], 6000]
?!(isnull (nearestobjectdistance [_obj, "camera", 10])): showdebug [format ["DEBUG (showDebug [String, Time (ms)]) 'SetVectorUp': %1 (VectorUp)", vectorUp _obj], 6000]
~1
_obj setpos _pos
_obj setvelocity [0,0,0]
_v set [_ind, 1]
_obj setvectorup _v
?(player distance _obj) < 10: showdebug [format ["DEBUG (showDebug [String, Time (ms)]) 'SetVectorUp': %1 (VectorUp)", vectorUp _obj], 6000]
?!(isnull (nearestobjectdistance [_obj, "camera", 10])): showdebug [format ["DEBUG (showDebug [String, Time (ms)]) 'SetVectorUp': %1 (VectorUp)", vectorUp _obj], 6000]
~1
goto "1"
