I am sure this is pretty basic but I can't find the answer.
When the action happens I want a script to run that has input arguments. I have tried putting the following in the init field of the relevant unit:
this addaction["action name",{[arg1,arg2] exec "scriptname.sqs"}]
but it just tells me that:
script [arg1,arg2] exec "scriptname.sqs" does not exist. I have tried different combinations of {} and " with similar results.
All the example of addaction I can find are of the type:
this addactino["action name","scriptname.sqs"]
Is what I am trying to do possible?