Hi, I'm making an outro where all surviving units at the end of mission are shown one by one saluting or doing some other effect.
My problem is the dead units are being shown too with an error and I dont know how to bypass them so the camera just goes straight to the living units.
Here is my script:
enableradio false
TitleCut ["","BLACK OUT",10]
~0
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]
Playsound "Sound1"
TitleCut ["You are heroes and have served beyond the call of duty","BLACK IN",8]
_cam camsettarget object
_cam camsetrelpos [0,2,0]
_cam camcommit 0
@camcommitted _cam
~4
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]
format ["%1",isnull p1]!="false":goto "NOTEXIST11"
_cam camsettarget p1
_cam camsetrelpos [0,2,1]
_cam camcommit 0
_playername = name p1
titlecut [_playername,"PLAIN DOWN",3]
p1 playmove "EffectStandTalk"
~3
p1 playmove "null"
@camcommitted _cam
~3
#NOTEXIST11
format ["%1",isnull p2]!="false":goto "NOTEXIST12"
_cam camsettarget p2
_cam camsetrelpos [0,2,1]
_cam camcommit 4
_playername = name p2
titlecut [_playername,"PLAIN DOWN",3]
~1
p2 playmove "EffectStandSalute"
~3
p2 playmove "null"
@camcommitted _cam
~4
#NOTEXIST12
format ["%1",isnull p3]!="false":goto "NOTEXIST13"
_cam camsettarget p3
_cam camsetrelpos [0,2,1]
_cam camcommit 4
_playername = name p3
titlecut [_playername,"PLAIN DOWN",3]
~1
p3 playmove "FXStandToDip"
~3
p3 playmove "null"
@camcommitted _cam
~4
#NOTEXIST13
format ["%1",isnull p4]!="false":goto "NOTEXIST14"
_cam camsettarget p4
_cam camsetrelpos [0,2,1]
_cam camcommit 4
_playername = name p4
titlecut [_playername,"PLAIN DOWN",3]
~1
p4 playmove "Effectstandsitdown"
~3
p4 playmove "null"
@camcommitted _cam
~4
#NOTEXIST14
format ["%1",isnull p5]!="false":goto "NOTEXIST15"
_cam camsettarget p5
_cam camsetrelpos [0,2,1]
_cam camcommit 4
_playername = name p5
titlecut [_playername,"PLAIN DOWN",3]
~1
p5 playmove "EffectStandSalute"
~3
p5 playmove "null"
@camcommitted _cam
~4
#NOTEXIST15
format ["%1",isnull p6]!="false":goto "NOTEXIST16"
_cam camsettarget p6
_cam camsetrelpos [0,2,1]
_cam camcommit 4
_playername = name p6
titlecut [_playername,"PLAIN DOWN",3]
~1
p6 playmove "EffectStandTalk"
~3
p6 playmove "null"
@camcommitted _cam
~4
#NOTEXIST16
format ["%1",isnull p7]!="false":goto "NOTEXIST17"
_cam camsettarget p7
_cam camsetrelpos [0,2,1]
_cam camcommit 4
_playername = name p7
titlecut [_playername,"PLAIN DOWN",3]
~1
p7 playmove "Effectstandsitdown"
~3
p7 playmove "null"
@camcommitted _cam
~4
#NOTEXIST17
format ["%1",isnull p8]!="false":goto "NOTEXIST18"
_cam camsettarget p8
_cam camsetrelpos [0,2,1]
_cam camcommit 4
_playername = name p8
titlecut [_playername,"PLAIN DOWN",3]
~1
p8 playmove "EffectStandSalute"
~3
p8 playmove "null"
@camcommitted _cam
~4
#NOTEXIST18
format ["%1",isnull p9]!="false":goto "NOTEXIST19"
_cam camsettarget p9
_cam camsetrelpos [0,2,1]
_cam camcommit 4
_playername = name p9
titlecut [_playername,"PLAIN DOWN",3]
~1
p9 playmove "EffectStandTalk"
~3
p9 playmove "null"
@camcommitted _cam
~4
#NOTEXIST19
format ["%1",isnull p10]!="false":goto "NOTEXIST20"
_cam camsettarget p10
_cam camsetrelpos [0,2,1]
_cam camcommit 4
_playername = name p10
titlecut [_playername,"PLAIN DOWN",3]
~1
p10 playmove "EffectStandSalute"
~3
p10 playmove "null"
@camcommitted _cam
~4
#NOTEXIST20
format ["%1",isnull p11]!="false":goto "NOTEXIST21"
_cam camsettarget p11
_cam camsetrelpos [0,2,1]
_cam camcommit 4
_playername = name p11
titlecut [_playername,"PLAIN DOWN",3]
~1
p11 playmove "EffectStandSalute"
~3
p11 playmove "null"
@camcommitted _cam
~4
#NOTEXIST21
format ["%1",isnull p12]!="false":goto "NOTEXIST22"
_cam camsettarget p12
_cam camsetrelpos [0,2,1]
_cam camcommit 4
_playername = name p12
titlecut [_playername,"PLAIN DOWN",3]
~1
p12 playmove "EffectStandSalute"
~3
p12 playmove "null"
@camcommitted _cam
~4
#NOTEXIST22
~1
_cam cameraeffect ["terminate", "back"]
camdestroy _cam
enableradio true
exit
Thanks.