Skip to content

Instantly share code, notes, and snippets.

View blackfisch's full-sized avatar

Rico Goldhardt blackfisch

View GitHub Profile
@blackfisch
blackfisch / fn_modelVillage.sqf
Created March 11, 2021 18:26 — forked from Seb105/fn_modelVillage.sqf
Instant model village script
/*
By Seb, with optimisations by Leopard20
How to use:
Params:
0 - Table - any object really, but tables work best. Map will scale to fit entire marker area on table.
1 - Marker area - STRING of marker, i.e. "marker_0", will fit the LONGEST axis entirely on the table, always square.
2 - Terrain resolution - how many cubes each side to build it out of, so num of cubes is square of this. Higher values are laggy
3 - Scale override. By default it will fit on whatever table you pass it, but this will make it bigger thant he table if set to more than 1.
Example = [table, "marker_0", 20, 1] execVM "fn_modelVillage.sqf";