Jump to content
Sign in to follow this  
thermos

Can't get syntax correct

Recommended Posts

Hi all got a question. I'm working on a mission and in order to go to the outro i call brief.sqs to check if all players are in the chopper:

@ (PlayerName1 in ChopperName) && (PlayerName2 in ChopperName) && (PlayerName3 in ChopperName)

"8" objStatus "done"

~1

cutText ["","black out",5]

~4.5

this exec "outro.sqs"

exit

this works great unless someone dies on the mission. And i can't figure out the correct syntax for it. What i would like it to do is say.

Not Code but the question:

@ if PlayerName1 alive (PlayerName1 in ChopperName) && if PlayerName2 alive (PlayerName2 in ChopperName) && if PlayerName3 alive (PlayerName3 in ChopperName)

anyone know how i would code the above question.

Thanks so much for any help,

thermos

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(((alive (PlayerName1)) && ((PlayerName1) in ChopperName)) && ((alive (PlayerName2)) && ((PlayerName1) in ChopperName)) && ((alive (PlayerName1)) && ((PlayerName3) in ChopperName)))

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×