Jump to content
Sign in to follow this  
DArmstrong

How to call a sqs from pramsArray?

Recommended Posts

Greetings,

I am attempting to add an additional parameter to a mission using the value of (parmsArray select 2) to call different scripts.

This is the entry I am trying in init.sqs

;Counter Attack strength MissionParameter
?(pramsArray select 2)==1 : [] exec "lite.sqs";
?(pramsArray select 2)==2 : [] exec "medium.sqs";
?(pramsArray select 2)==3 : [] exec "heavy.sqs";

this is the relevant entry in Description.ext

//Parameters Array
class Params
{
  class Counter Attack
       {
       //paramsArray [select 2]
               title = "Counter Attack";
               values[] = {0,1,2,3};
               texts[] = {"None","Lite","Medium","Heavy"};               
               default = 1;
       };
};

None of the counter attack scripts are running. I'm pretty sure I'm not properly coding the part in init.sqs.

Thanks in advance for your help.

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  

×