Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:Creates a marker with multiple layers (separate icons, which are are merged into one marker).

It is used to create tactical markers, and consists of exactly 4 layers. If more or less than 4 layers are specified, nothing is drawn.

The format for each layer is [imagepath, size, offset], where "imagepath" has to be a specific folder for each layer:

  • imagepath String:
    • layer1 - "\vbs2\ui\tacticmarkers\data\frames\"
    • layer2 - "\vbs2\ui\tacticmarkers\data\icons\"
    • layer3 - "\vbs2\ui\tacticmarkers\data\modifiers\"
    • layer4 - "\vbs2\ui\tacticmarkers\data\subroles\"
  • size Array:
    • Size of marker layer in [x,y]
  • offset Array:
    • Offset of layer in [x,y]. Currently non-functional, and should be set to [0,0].

The images that are available for the different layers are:

  • layer1 (side icon):
    • "Friend_Air"
    • "Friend_Air_planned"
    • "Friend_Equip-Sea"
    • "Friend_SubSurface"
    • "Friend_SubSurface_planned"
    • "Friend_Units"
    • "Friend_Unit_planned"
    • "Hostile_Air"
    • "Hostile_Air_presumed"
    • "Hostile_SubSurface"
    • "Hostile_SubSurface_presumed"
    • "Hostile_Surface"
    • "Hostile_Surface_presumed"
    • "Neutral_Air"
    • "Neutral_SubSurface"
    • "Neutral_Surface"
    • "Unknown_Air"
    • "Unknown_SubSurface"
    • "Unknown_Surface"
  • layer2 (unit icon):
    • "AirDefence"
    • "Air_Defence_Missile"
    • "AntiArmour"
    • "AntiTank_Missile"
    • "AntiTank_Rocket"
    • "AntiTank_Rocket_medium"
    • "APC"
    • "Armour"
    • "Artillery"
    • "Aviation"
    • "AviationFixedWing"
    • "AviationRotaryWing"
    • "Blanc"
    • "CBT"
    • "Civ_Vehl"
    • "CombatSupport"
    • "CombatSuppService"
    • "Engineers"
    • "Grenade_Launcher"
    • "Howitzer"
    • "Howitzer_medium"
    • "H_AirDefence"
    • "H_AntiArmour"
    • "H_Infantry"
    • "H_Mech_Inf"
    • "H_Medical"
    • "H_Recon"
    • "H_Supply"
    • "Infantry"
    • "Maintenance"
    • "Mech_Inf"
    • "Medical"
    • "Mortar"
    • "NonMilitary_Merchant"
    • "Operational_Vehl"
    • "Petro_Gas_Oil"
    • "Recon"
    • "Riffle"
    • "Riffle_heavy"
    • "Riffle_medium"
    • "SpecForces"
    • "Supply"
    • "Tank"
    • "Transport"
    • "Utillity_Vehl"
  • layer3 (size icon):
    • "Blanc"
    • "S_Army"
    • "S_ArmyGroup"
    • "S_Bataillon"
    • "S_Brigade"
    • "S_Company"
    • "S_Corps"
    • "S_Division"
    • "S_LargeSection"
    • "S_Platoon"
    • "S_Regiment"
    • "S_Region"
    • "S_Section"
    • "S_Team"
  • layer4 (modifier icon):
    • "Airborne"
    • "AirmobileWithOrganicLift"
    • "Amphibious"
    • "Assumed"
    • "Attack"
    • "Blanc"
    • "C2"
    • "Direction_Air_SubSurface"
    • "Direction_Surface"
    • "Faker"
    • "Feint"
    • "Half_Track"
    • "HQ"
    • "H_Airborne"
    • "H_Amphibious"
    • "H_HQ"
    • "H_Suspect"
    • "H_Wheeled"
    • "Installation"
    • "Joker"
    • "Light"
    • "MEDEVAC"
    • "Medium"
    • "Motorised"
    • "Pending"
    • "Recon"
    • "Search_Rescue"
    • "TF_1"
    • "TF_3"
    • "TF_5"
    • "Towed"
    • "Tracked"
    • "UAV"
    • "Utility"
    • "Wheeled"
    • "Wheeled_CrossCountry"
    • "Wheeled_limit_CrossCountry"

Syntax

Syntax:markername setMarkerLayers [layer1, layer2, layer3, layer4]
Parameters:
  • markername: String - An "ICON" marker that has been created, using createMarker.
  • layer1,2,3,4: Array - Layer definition. For more information, see the description.
Return Value:Nothing

Examples

Examples:
// Create an icon marker
_marker = createMarker["myMarker",getPos player];
_marker setMarkerShape "ICON";
_marker setMarkerSize [10, 10];

// Define its layers
_marker setMarkerLayers [
  ["\vbs2\ui\tacticmarkers\data\frames\friend_equip-sea.paa",[4,4],[0,0]],
  ["\vbs2\ui\tacticmarkers\data\icons\aviationrotarywing.paa",[4,4],[0,0]],
  ["\vbs2\ui\tacticmarkers\data\modifiers\s_team.paa",[4,4],[0,0]],
  ["\vbs2\ui\tacticmarkers\data\subroles\c2.paa",[4,4],[0,0]]
]

Additional Information

See also: setMarkerLayersLocal, markerLayers
Multiplayer:
Problems:

Notes