Fandom

武装突袭 Wiki

Location

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 分享

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

A location is like an extended type of marker (introduced in ArmA 1.08).

  • Locations have a name, a side, a 3D position, a 2D area, and an orientation.
  • They have a non-scaling map representation (icon and/or text, depending on class).
  • They require a class definition to define basic properties that can be changed using script commands. Classes are defined in bin\Config.bin\CfgLocationTypes
  • They can be attached to objects, with all of the location's relevant properties inherited from the object
  • They can use setVariable and getVariable, but only works with user made locations [1]
  • Locations are local in MP, their properties are not synchronized
  • Existing locations are set in an islands .pew file. When the island is exported to .wrp the islandname.hpp is also produced - this contains the location names used in the .pew file. This .hpp is then incorporated into the config for the island using an #include statement.
    This section included in the island config ensures any locations set in the .pew file are included the island during packing.
  • A terrain's config can not be changed using the location script commands, but they can be found and read. This provides a single command method of finding nearby high points, towns, etc.

Location Types编辑

Armed Assault编辑

File:LocationTypes.JPG

Possible location types are:

  • Mount
  • Name
  • NameMarine
  • NameCityCapital
  • NameCity
  • NameVillage
  • NameLocal
  • Hill
  • ViewPoint
  • RockArea
  • BorderCrossing
  • VegetationBroadleaf
  • VegetationFir
  • VegetationPalm
  • VegetationVineyard


File:Arma2 CfgLocationTypes.jpg

Arma 2编辑

  • Name
  • Strategic
  • StrongpointArea
  • FlatArea
  • FlatAreaCity
  • FlatAreaCitySmall
  • CityCenter
  • Airport
  • NameMarine
  • NameCityCapital
  • NameCity
  • NameVillage
  • NameLocal
  • Hill
  • ViewPoint
  • RockArea
  • BorderCrossing
  • VegetationBroadleaf
  • VegetationFir
  • VegetationPalm
  • VegetationVineyard

Arma 3编辑

  • NameCity
  • NameCityCapital
  • NameMarine
  • NameVillage
  • NameLocal (Will return names like Airport)
  • Hill
  • Mount

Location Related Scripting Commands编辑

createLocation, deleteLocation, nearestLocations, nearestLocation, position, getPos, locationPosition, direction, size, type, importance, name, className, text, rectangular, attachedObject, side, isNull, locationNull, nearestLocationWithDubbing, in, drawLocation, setPosition, setDirection, setSize, setType, setImportance, setName, setText, setRectangular, attachObject, setSide, setVariable, getVariable, distance, distanceSqr

更多维基

随机维基