Jump to content
gunut82

Creating an alternate trigger event (good/bad Intel)

Recommended Posts

Hello,

 

i am writing a mission and I am hitting a hurdle that I can not get over. I have not been able to find any info on the web about what I am trying to do.

 

I am making a mission that involves a hostage providing you with Intel. I want there to be a 50/50 chance that the Intel they provide is good or bad Intel. If good info is randomly generated I want to take the squad down the storyline if bad Intel is provided I want to send the squad into an ambush. 

 

Thank you

 

Share this post


Link to post
Share on other sites

What did you try already and what problem has occured?

Share this post


Link to post
Share on other sites

I do not really know where to start. I am looking for suggestions. 

Share this post


Link to post
Share on other sites

_rnd = Random 1;

if (_rnd < .5) then

{

   // ambush

} else

{

   // good info

};

 

In a script you would use ( _rnd ), in an editor trigger you would use ( rnd ) instead.  Editor triggers don't much use local variables.

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

×