Location: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (grammatized)
Line 1: Line 1:
A location is like an extended type of marker. It is not clear when the commands were introduced, but they were first noticed in ArmA version 1.08.
A location is like an extended type of marker (introduced in ArmA 1.08).


*Locations have a name, a side, a 3D [[Position|position]], an 2D area, and an orientation.  
*Locations have a name, a side, a [[Position3D|3D position]], a 2D area, and an orientation.  
*They have a non-scaling map representation (icon &/or text, depending on class).
*They have a non-scaling map representation (icon and/or text, depending on class).
*They require a class definition to define basic properties that cannot be changed using script commands (text size, font, colour, icon type). Classes are defined in bin\Config.bin\CfgLocationTypes
*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 be attached to objects, with all of the location's relevant properties inherited from the object
*They can use setVariable and getVariable.
*They can use [[setVariable]] and [[getVariable]].
*Locations are local in MP, their properties are not synchronized
*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 i.e.:
*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 [[PreProcessor_Commands#.23include|#include]] statement.<br>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.


class Names
'''See also: [[:Category:Command Group: Locations]]'''
{
#include "islandname.hpp"
};
 
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.
 
See also [[:Category:Command Group: Locations]]


[[Category: Data Types]]
[[Category: Data Types]]

Revision as of 01:18, 8 October 2008

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.
  • 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.

See also: Category:Command Group: Locations