1. when adding an action, give it a name like this
my_action = unit_name addaction ["foo","foo.sqs"]
to remove that particular action, use
unit_name removeaction my_action
had you checked the
comref you would have known that one already...
2. variables don't need to be defined as such, as flashpoint will initialise them the first time it sees them. it is good programming practice to tell flashpoint about arrays though. define them like so
my_array = []
3. rank cannot be changed in-game. rank can be set when creating new units in-game - see the
createunit command.
finally, it's easier for us at ofpec to help you if you stick to one question per thread. what happens is that once threads are solved, we go through them all and pick the ones which are the most asked. those then get made into FAQ entries. however, if there are threads like this, with a bunch of questions being dealt with, it's more difficult to sort them out.
in future, one question per thread please, unless they are directly related to each other i.e. how do i get a loon in a sled, how do i get that loon to drive that sled down a chimney and deliver presents while saying 'ho ho ho'...