While it is possible to play this mission from the regular mission menu,
it is preferable to play it directly from the editor instead.
That way setup parameters and target type can be easily adjusted.
All target range objects are created dynamically via a call to the targetrange script:
nul=[] execVM "targetrange.sqf"
By default the target distances starts at 100 meters.
To change the distance, select the "Increase" or "Decrease" distance action.
To reposition the targets in front of the player, select the "Re-align target" action.
Any available weapon in the game can be selected via the "Select Weapon" action.
The player will be equipped with all compatible ammor, and will receive unlimited ammo,
which is automatically reloaded.
If the targetrange script is called without arguments, only a single popup target is created.
To modify the kind of targets displayed, an array has to be defined as the first argument:
e.g. nul=[["SoldierWB","M113"],"min:50","max:150"] execVM ...
Targets can be defined either by their class names (as in the example above),
or as references to objects that have already been placed on the map (the initial position of those items is irrelevant):
e.g. nul=[[man1,man2,0,0,tank1]] execVM ...
If an array entry is just a '0', then a gap will be left at that position.
If the targets should move left and right, the following parameters have to be used:
"speed:{number}" (1=slowest, 10=fastest)
"move:{number}" (how far the targets should move)
The following example has targets move 20 meters, at a medium speed:
e.g. nul=[["SoldierWB","M113"],"speed:5","move:20"] execVM "targetrange.sqf"
If the target is an AI unit, it can be made to run back & forth at regular movement speeds.
Enter "run:{speedmode}" as an argument.
{speedmode} can be "LIMITED", "NORMAL" or "FULL"
e.g. nul=[[unit1],"run:full"] execVM "targetrange.sqf"
Credits
2009 - Kronzky
www.kronzky.info
kronzky@gmail.com
The target range will be positioned relative to the player's position and orientation.
Via the action menu the target position can be set to a specific distance.
When targets are killed they will be re-created.
Weapons are automatically reloaded, and have unlimited ammo.
The following options can be activated via the radio menu:
1.) A "bullet cam".
2.) A slow-mo mode.
3.) Create a marker at the projectile's landing spot.
4.) Display of weapons elevation, and a ballistics table.
5.) Starting & stopping of moving targets.
Information about call sytax on the Notes page.