Jump to content
Sign in to follow this  
whiplash_FR

Increment a value and comparing it

Recommended Posts

Hi everybody,

I'm not an expert in scripting that's why I came here today. I've already looked on the forum but didn't find what I was looking for. I'm also not really sure how to call it...

 

I am creating a mission where I can pick up intels on different location.

I would like to activate a trigger once a certain amount of intel has been retrieve.

 

I've seen this post but couldn't make it work

http://www.armaholic.com/forums.php?m=posts&q=16143

 

My idea was to increment a value like above

each tyme I am retrieving an intel I have this on act:

intel=intel+1

 

Then in the "final" trigger I have on cond:

intel=2

 

If anyone could point me the right direction.

Share this post


Link to post
Share on other sites
intel=2

this basically defines intel as 2.

you need to use a comparison operator, like this:

intel >= 2 //read: "intel bigger than 2"

will return true if intel is 2 or bigger.

 

Cheers

  • Like 1

Share this post


Link to post
Share on other sites

I feel so stupid right now... Of course intel=2 put intel at this specific value !

 

Thanks a lot mates!

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  

×