; 
; Script for the spectating script v1.4 by Kegetys <Kegetys@dnainternet.net> 
; http://www.ofp.kege.cjb.net
;

_i = _this
DeathCamIndex = DeathCamIndex + _i
? DeathCamIndex >= count MAP_resp: DeathCamIndex = 0
? DeathCamIndex < 0: DeathCamIndex = count MAP_resp - 1

lbSetCurSel [1047002, DeathCamIndex] 
_name = name (MAP_resp select DeathCamIndex)
if (_name == "error: no unit") then {_name = ""}
ctrlSetText [116969,_name]
DeathCamCurTarget = (MAP_resp select DeathCamIndex)
exit