OK, here's a better way to create units. Those scripts of mine that you have are getting old. Check the example mission.
- uses object id's as spawn locations so nothing has to be placed in the editor. Units from same group spawn at different locations.
- change units weapon loadout
- set units face
If you're using custom units and don't know the editor names for them, simply open the editor and place a few of them and save. Open the mission.sqm with wordpad and look at the "vehicle" names, and use them in the create script.