Jump to content
  • 0

How to i get the vihicles fix on Bornholm


D4rwin

Question

10 answers to this question

Recommended Posts

  • 0

I didn't need to change anything really, just set the worldsize in the cpp file. 

 

the only issue i noticed is a lot of cars tend to cluster together on the airfields, i suspect this may have something to do with the bornholm roads not being recognised as a valid road to spawn cars near? 

Link to comment
Share on other sites

  • 0

Open bornholm in the editor.

Place a unit. 
click preview.

press esc

paste this into the debug

worldRadius = (getNumber(configFile >> "CfgWorlds" >> worldName >> "MapSize")/2);
worldCenterPos = [ worldRadius, worldRadius, 0];
marker = createMarkerLocal ["Center", worldCenterPos];
marker setMarkerPosLocal worldCenterPos;
marker setMarkerShapeLocal "ELLIPSE";
marker setMarkerSizeLocal [_worldRadius, worldRadius];
marker setMarkerColorLocal "ColorBlack";
marker setMarkerAlphaLocal 0.5;
marker setMarkerBrushLocal "SolidFull";
copytoClipboard format["%1 / %2 / %3", toLower worldName, worldRadius*2, worldCenterPos];
hint format["Copy to clipboard\nUse %4 to paste this information:\n\nWorldName: %1\nSize: %2\nCenter: %3", worldName, worldRadius*2, worldCenterPos, str (ctrl+v)];

Press the exec button. Should give you what you need for map center and size. I think kiloswiss wrote this btw i'm not taking credit for it :)

Link to comment
Share on other sites

  • 0

Open bornholm in the editor.

Place a unit. 

click preview.

press esc

paste this into the debug

worldRadius = (getNumber(configFile >> "CfgWorlds" >> worldName >> "MapSize")/2);
worldCenterPos = [ worldRadius, worldRadius, 0];
marker = createMarkerLocal ["Center", worldCenterPos];
marker setMarkerPosLocal worldCenterPos;
marker setMarkerShapeLocal "ELLIPSE";
marker setMarkerSizeLocal [_worldRadius, worldRadius];
marker setMarkerColorLocal "ColorBlack";
marker setMarkerAlphaLocal 0.5;
marker setMarkerBrushLocal "SolidFull";
copytoClipboard format["%1 / %2 / %3", toLower worldName, worldRadius*2, worldCenterPos];
hint format["Copy to clipboard\nUse %4 to paste this information:\n\nWorldName: %1\nSize: %2\nCenter: %3", worldName, worldRadius*2, worldCenterPos, str (ctrl+v)];

Press the exec button. Should give you what you need for map center and size. I think kiloswiss wrote this btw i'm not taking credit for it :)

Thanks for this ! :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...