Right, for a start bear in mind that I don't really specialise in the area of MP missions... but here's a cunning trick I use in single player missions, to execute commands from a script using a trigger.
So what, you say?
Well, you can execute
any command from a single trigger. Some commands are unreliable in scripts, and 'inserting' them into a trigger fixes this.
Anyway, the trigger looks something like this:
TriggerRadius: 0,0
Condition: none (repeatedly)
Condition Field:
orderstring != ""
OnActivatio Field: call format ["" +
orderstring ];
orderstring = ""
So for instance in my Scene script I want to change the behaviour of a unit (for some reason, their behaviour doesn't change when I give them a setbehaviour command in the script). So I use the line:
orderstring = "
unit setbehaviour ""safe"""
(Note the necessity of the double quotes, as you have to pass the whole line as a string). The
orderstring variable changes from "", and the trigger trips, executing that command from it's onactivation line.
If I was going to do this in MP, I'd imagine it would look something like this:
orderstring = "
unit setbehaviour ""safe"""
Publicvariable "
orderstring"
It doesn't stop there... provided you understand how to take care of the quotes (ie. when double and triple quotes are necessary... I'd also investigate using {} ) you can use it to pass orders to whole arrays, eg.
orderstring = """_x dofollow abrams"" foreach [apac, bapc, capc]"
Anyway, as I said I haven't used that in MP, but have a muck around and see if you can get it going