Hi All   I want to share a script which I have been working on in the last couple of months. I started development of the script with the intent of not only providing my unit with an easy and semi configurable reinforcement script but also to improve my own scripting skills. The reinforcement will be spawned at a predefined marker location, loaded up in a vehicle of choice, follow waypoint markers to an offload point and then attack a marked area.     HOW TO USE The bare minimum needed for the script to work is:  3 waypoint (spawn,drop and attack waypoints) a trigger (or any other method) to call the script the name transport vehicle.   ~In Editor:
Place minimum three markers on the map. The first being the spawnpoint (movement array element 0) of the transported infantry and vehicle, in this example it will be "marker_vehSpawn_01". The second will be the drop off point of the infantry, in this instance "marker_vehUnload_01" and lastly the attack point for the infantry and vehicle (vehicle will only assault attack markers if specified in the "motoInfReinforce_Init.sqf" otherwise it will remain at the unload waypoint), called "marker_attack".   ~In initServer.sqf:
In the intServer.sqf place this code: [] execVM "motoInfReinforce_Init.sqf";   ~How to Call (Basic):
Place a trigger on the map, set it to whatever conditions required ex "Bluforce Present" and in the init: Description:    ["vehicleClassName",[moveMentMarkers],[offloadMarkers],[attackMarkers]]
Example:        null = ["O_APC_Tracked_02_cannon_F",["marker_vehSpawn_01"],["marker_vehUnload_01"],["marker_attack"]] spawn TB_fnc_motoInfReinforce_Main;
The vehicle cargo space will dictate the number of units transported.   ~Configurable:
There is no need to edit the main program body and you can edit the "motoInfReinforce_Init.sqf" settings to customise the vehicles and units that are spawned. Please read the readme to see all settings that can be adjusted. This includes, vehicle type, nr of movement, unload and attack markers, the unit type size and class as well as nr of squads.   ~Advance Calling: Syntax 1 Description:    ["vehicleClassName",[moveMentMarkers],[offloadMarkers],[attackMarkers],[customSquadArray],side]
Return:            Created vehicle (OBJECT)
Example:        veh = ["vehClassName",["markerSpawn","markerWaypoint_01"],["markerOffload_1"],["markerAttack_1"],[NrOfSquads,"Unit1_className","Unit2_className"],Side] call TB_fnc_motoInfReinforce_Main;
  The script allows further customization by adjusting six variables the following variables (* is optional variables):
(1st) vehicleClassName (STRING)                           :    CfgVehicles class name of the transport vehicle. Ensure the vehicle spawned is large enough to accommodate the infantry group.
(2de) moveMentMarkers (ARRAY of STRING)         :    Array of spawn marker and movement markers for vehicle transporting the infantry. The first marker will be used as the spawn marker.
(3de) offloadMarkers (ARRAY of STRING)               :    Array of possible offload markers for the infantry.If more than one offload marker is provided, a random offload point will be selected from the array.
(4th) attackMarkers (ARRAY of STRING)                 :    Array of possible assault markers where all combat units will move too and perform an Search and Destroy movement order.
                                                                                      If more than one marker is provided in the array, attack points will be assaulted sequentially. 
(5th*) customSquadArray (ARRAY of NR&STRING) :    Array of class names of units and the number of squads that must be transported:                                                                                       [NrOfSquads,"Unit1_classNames","Unit2_classNames"]
                                                                                      NrOfSquads         -   Total number of squads to be spawned. (integer > 0)
                                                                                      Unit_classNames -   List of Unit classNames that will be spawned in a single squad.
(6th*)    side (side)                                                    :    Optional Variable. Side of the reinforcement ( West || East || Independent ).
                                          
* Is Optional. (If this variable is not provided, default function will be used)   Syntax 2
Description:    ["vehicleClassName",[moveMentMarkers],[offloadMarkers],[attackMarkers],numberOfUnits,side]
Return:            Created vehicle (OBJECT)
Example:        veh = ["vehClassName",["markerSpawn","markerWaypoint_01","markerWaypoint_01", etc],["markerOffload_1","markerOffload_2", etc],["markerAttack_1","markerAttack_2",etc],numberOfUnits,Side] call TB_fnc_motoInfReinforce_Main;
  The script allows further customization by adjusting six variables the following variables (* is optional variables):
(1st) vehicleClassName (STRING)                      :    Same as syntax 1
(2de) moveMentMarkers (ARRAY of STRING)    :    Same as syntax 1
(3de) offloadMarkers (ARRAY of STRING)          :    Same as syntax 1
(4th) attackMarkers (ARRAY of STRING)            :    Same as syntax 1
(5th*) numberOfUnits (Integer)                            :    Optional variable. Integer wich dictates how many units are spawned and added to the vehicle cargo.
                                                                                 numberOfUnits < 0 -   Spawn default group and move into the vehicle.
                                                                                 numberOfUnits = 0 -   Default setting. All of the vehicle cargo is filled with default units.
                                                                                 numberOfUnits > 0 -   Use default unit and spawn total number of units equal to the number provided.
(6th*)    side (side)                                               :    Same as syntax 1   * Is Optional. (If this variable is not provided, default function will be used)     CREATING A CONVOY:
Description:    [[vehicles], speedVar]
Example:        [[veh_1,veh_2,etc],80] spawn TB_fnc_createConvoy; The script allows further customization by adjusting six variables the following variables (* is optional variables):
(1st)     vehicles (ARRAY of OBJECTS)    :    Array of vehicles that will form a group.
(2de*)     speedVar (INTEGER)                :    Variable adjust the maximum speed the lead vehicle can travel at. 
                                                                      speedVar <= 0 will be default behaviour (no speed limit).
* is Optional     DOWNLOAD Motorised Infantry VR Mission Example   Any suggestions and comments are welcome.     CHANGELOG