Page MenuHomeFeedback Tracker

[Feature Request] - cfgWorlds "centerPosition"
New, WishlistPublic

Description

Please place the "centerPosition" at the real center of the world. To know the real center of a world/map is important in some cases for community developers. In the past (OFP, A1, A2 (only Chernarus)) the mapcenter was always at the geographical center of the world. Since Takistan it isn't there. Every community world has the "centerPosition" at the real centerPos too.

Details

Legacy ID
1176603936
Severity
None
Resolution
Open
Reproducibility
Always
Category
Config
Steps To Reproduce

mapcenter = getArray (configFile >> "CfgWorlds" >> worldName >>
"centerPosition");
_m = createMarkerLocal [str(mapcenter),mapcenter];
_m setMarkerTypeLocal "b_art";

Event Timeline

Psychobastard edited Additional Information. (Show Details)
Psychobastard set Category to Config.
Psychobastard set Reproducibility to Always.
Psychobastard set Severity to None.
Psychobastard set Resolution to Open.
Psychobastard set Legacy ID to 1176603936.May 7 2016, 5:29 PM
Bohemia added a subscriber: AD2001.Nov 23 2013, 2:35 PM

centerPosition is for the camera

mapSize (new A3 config parameter for terrains) should allow you to compute the center.
However community modders need to set it themselves.

Hence a SQF command centerWorldPosition or with similar naming would be the way to go.

How about another config param centerPositionReal? It would literally take 15 seconds of dev time to add it.

Thx .kju!

Work-Around:
_size = getNumber (configFile >> "CfgWorlds" >> worldName >> "MapSize");
mapcenter = [_size/2,_size/2,0];
_m = createMarkerLocal [str(mapcenter),mapcenter];
_m setMarkerTypeLocal "b_art";