bedges, thanx I'll give it a try
changing the "=" to "==" didn't help I still get the following errors:
'|#|}': error invalid number in expression
'else |#|{ TitleText ["3 Injured","PLAIN DOWN"] } }': Error unknown operator
(I get this one to each one of the soldiers)
'if (_inj==0) then {|#|': Error Missing )
this is my whole code:
group player setBehaviour "STEALTH"
_inj=0
_cam = "camera" camcreate [-37037.96,93060.63,-32977.34]
_cam cameraeffect ["internal", "back"]
_camera camSetTarget [-37037.96,93060.63,-32977.34]
_camera camSetPos [9340.43,10925.47,74.68]
_camera camSetFOV 0.700
_camera camcommit 0
@camcommitted _cam
~7
_cam camsettarget player
_cam camsetrelpos [1,2,0.5]
_cam camcommit 3
@camcommitted _cam
TitleText ["Ok, I think we've got'em all\nlie down and keep covering to the front","PLAIN DOWN"]
~5
TitleText ["Team! Status report","PLAIN DOWN"]
~2
_cam camsettarget unit1
_cam camsetrelpos [-1,2,0.5]
_cam camcommit 2
@camcommitted _cam
if (getDammage unit1==0) then {
TitleText ["2 ok","PLAIN DOWN"] }
else {
_inj=_inj+1
if (getDammage unit1==1) then {
TitleText ["...","PLAIN DOWN"] }
else { TitleText ["2 Injured","PLAIN DOWN"] }
}
~2
//.
//.
//.
//the last camera script is repeating for all the squad members
_cam camsettarget player
_cam camsetrelpos [-1,2,0.5]
_cam camcommit 0
@camcommitted _cam
_message = format [{"Ok, radio back to HQ that we enliminated the threat\nwe have %1 men down and waiting for further
instructions"}, _inj ]
if (_inj==0) then {
TitleText ["Ok, radio back to HQ that we enliminated the threat\nand that we are waiting for further instructions","PLAIN DOWN"]
~6
}
else {
TitleText [_message,"PLAIN DOWN"]
~6
}
TitleText [" ","PLAIN DOWN"]
~5
_cam cameraeffect ["terminate", "back"]
camdestroy _cam
exit