• 0
Sign in to follow this  
Followers 0

ExileServer_world_spawnVehicles.sqf _gridSizeOffset and _gridSize divided by two?


Hello Everyone,

I am not pretty  sure if the below are bugs or I am only confused
If its not a bug I would highly appreciate  you can explain me once.


1.  The below line calculates the _gridSizeOffset, which is actually used (what i guess) to calculate the center position for "BIS_fnc_findSafePos". But the line is using MODULO instead of division by 2 - Modulo 2 will result into 0 or 1

_gridSizeOffset = _gridSize % 2; // wrong?

I asume it should be

_gridSizeOffset = _gridSize / 2; // corrected?

2. Also, finding the safe position using "BIS_fnc_findSafePos" is always from the center, so radius should be then divided by 2, or?!

_positionReal = [_position, 25, _gridSize, 5, 0 , 1 , 0 , _spawnedPositions] call BIS_fnc_findSafePos;

should be changed to

_positionReal = [_position, 25, _gridSize / 2, 5, 0 , 1 , 0 , _spawnedPositions] call BIS_fnc_findSafePos;



Edited by ole

Share this post

Link to post
Share on other sites

0 answers to this question

There have been no answers to this question yet


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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.