Jump to content
Bosh__

Editing an existing script to place markers on specified buildings

Recommended Posts

Script in question - https://pastebin.com/vfaTGnBN from https://steamcommunity.com/app/107410/discussions/0/412447331648476799/

 

This script works fine at the moment to add rectangle markers to the specified buildings in HouseArray. However I need the markers to be named m1, m2, m3, m4 etc in order to work with the EOS spawn system. I've seen scripts with something like "m_%1" to have numbers in ascending order but I can't get that to work.

 

The boxes are fine at the moment and I can live with them but they tend to really overlap the grey boxes on the map that indicate buildings. I was wondering if there was something better than boundingBoxReal that would stick exactly to the grey boxes on the map?

Lastly, would it be possibly to change this to something that can be executed in debug console to create the markers in the editor? Rather than running a script every time on mission start. This doesn't really matter as much, just wondering if possible.

 

Any help would be great!

Share this post


Link to post
Share on other sites
createMarker [format ["m%1", (_forEachIndex + 1)], _position];

 

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×