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


Introduced in

Version:1.00

Description

Description:

Creates a location of the specified class and dimensions at the specified position. Classes are defined in CfgLocationTypes (see Class CfgLocationTypes in the VBS3 Developer Reference).

The locations in CfgLocationTypes can be:

  • BorderCrossing
  • FillArea
  • Hill
  • Mount
  • Name
  • NameCity
  • NameCityCapital
  • NameLocal
  • NameMarine
  • NameVillage
  • OutLineArea
  • RockArea
  • VBS2_CREW_DEVICE
  • VBS2_IED_cell_phone_jammer_location
  • VBS2_IED_cell_phone_range_location
  • VBS2_IED_location
  • VBS2_IED_radio_jammer_location
  • VBS2_IED_radio_range_location
  • vbs2_plugins_IED_CREW
  • VegetationBroadleaf
  • VegetationFir
  • VegetationPalm
  • VegetationVineyard
  • ViewPoint

Syntax

Syntax:createLocation [className, position, sizeX, sizeY]
Parameters:
  • className: String - Location class name.
  • position: Position-2 - Location position.
  • sizeX: Number - Radius in meters along the X axis.
  • sizeY: Number - Radius in meters along the Y axis.
Return Value:Location

Examples

Examples:
myLocation = createLocation ["NameVillage", [4035,2151,10], 100, 100]

Additional Information

See also:
Multiplayer:
Problems:

Notes