I'm creating a mission in which I'm using some of the units from the WW4 modpack as OpFor. The thing is, I want them to use ORCS weapons, not the ones from the WW4 pack. Right now, the only way I know how to do this is, of course, in the init (removeallweapons and then add the new loadout).
That's easy enough to do, but we're talking hundreds of soldiers here, it'd be so much easier if I could simply create a number of scripts, one for each type of loadout I want to give my OpFor guys (say, riflemanloadout.sqs, officerloadout.sqs, etc.), and then exec the appropriate script in each soldier's init. That would also be a great boon if I want to change one of those loadouts, because I'd just have to edit the script instead of hundreds of inits (opening the .sqm in Notepad++ and using the replace function helps, but even that is a bit fiddly)
So, the problem is that I'm hopeless with scripts and wouldn't have the first clue how to create such a thing. I've looked at various tutorials, but most of this stuff is beyond comprehension for me.
By the way, I have seen
this and, while it's a nice idea, it's too complex for this purpose. Like I said, my OpFor soldier's loadouts are standardized based on their role (soldier, machine gunner, rpg, etc.), so I don't need to mix and match. To recap, what I need is a simple script that, when executed by
any unit, removes that unit's equipment and replaces it with something else.