Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GAIA fortify error on Takistan map #63

Open
TheShinriel opened this issue Aug 14, 2019 · 0 comments
Open

GAIA fortify error on Takistan map #63

TheShinriel opened this issue Aug 14, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@TheShinriel
Copy link
Collaborator

image

From log

20:37:15 Error in expression <efend_positions",_array];
[_x,_building buildingpos _p] spawn {
if (surfaceIsWat>
20:37:15   Error position: <buildingpos _p] spawn {
if (surfaceIsWat>
20:37:15   Error buildingpos: Type Array, expected Number
20:37:15 File gdc_lib_main\functions\gdc_gaia\control\fortify\fn_taskDefend.sq..., line 86

The concerned code

_p = (_building getvariable "CBA_taskDefend_positions") call BIS_fnc_selectRandom;
_array = _array - [_p];
if (count _array == 0) then {
	_buildings = _buildings - [_building];
	_building setvariable ["CBA_taskDefend_positions",nil];
};
_building setvariable ["CBA_taskDefend_positions",_array];
[_x,_building buildingpos _p] spawn {

Bon je suppose que c'est le calcul des positions qui a renvoyé une mauvaise valeur, vu que le selectRandom semble avoir renvoyé un tableau et non un nombre.

C'est peut être la configuration du batiment en question qui n'est pas la même que les autres.

@Migoyan Migoyan added the bug Something isn't working label Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants