gruppe-adler / grad_trenches

Visual Upgrade for Trenches
Other
18 stars 18 forks source link

Trench map markers placed at [0,0,0] instead of correct pos #112

Closed indig0fox closed 3 years ago

indig0fox commented 3 years ago

The "Create trench map markers" setting appears to (in local MP testing) create the markers at [0,0,0] rather than the position of the placed trench. I believe it's due to the _trench object fed to the create marker function still being positioned at [0,0,0] from initial spawn -- it's moved later in the spawnTrench function.

https://github.com/gruppe-adler/grad_trenches/blob/c90ccf269b603cb0080d5211f5144db171adeaac/addons/functions/functions/fnc_createTrenchMarker.sqf#L33

https://github.com/gruppe-adler/grad_trenches/blob/c90ccf269b603cb0080d5211f5144db171adeaac/addons/functions/functions/fnc_spawnTrench.sqf#L25-L36