Jump to content
Sign in to follow this  
Scud

?(_player in _plane)

Recommended Posts

Can some1 clear this up for me?

?(_player in _plane) - does this mean player is in the plane

?!(_player in _plane) - and this player is not in plane

or do they mean the same thing or visa versa?

Share this post


Link to post
Share on other sites

? = if

?! = if not

and if you want to select the player, don't put the underscore in front of "player"

your example would be

? (player in _plane) : //This code will be executed if the player IS in the plane

?!(player in _plane) : //This code will be executed if the player IS NOT in the plane

cheers wink_o.gif

Share this post


Link to post
Share on other sites

I tend to like to use the NOT arguement when doing scripting conditions.  It's up to the scripter, but the word NOT stands out more and is easier to notice when scrutinizing code and analyzing complex logic arguements.

?! (player in _plane)  or ? NOT (player in _plane) , either way works.

Share this post


Link to post
Share on other sites

Great thanks for help biggrin_o.gif

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  

×