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.
Description
Description
Details
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
Comment Actions
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.
Comment Actions
How about another config param centerPositionReal? It would literally take 15 seconds of dev time to add it.
Comment Actions
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";