1
Editing & Coding / Re: How to make all Towns available on player respawn
« on: May 16, 2018, 02:48 PM »
From a quick look, see...
https://github.com/A3Wasteland/ArmA3_Wasteland.Stratis/blob/dev/client/systems/playerMenu/dialog/loadRespawnDialog.sqf#L424-L434
Replace with...
and see...
https://github.com/A3Wasteland/ArmA3_Wasteland.Stratis/blob/dev/client/systems/playerMenu/dialog/loadRespawnDialog.sqf#L452-L459
Replace with...
That's a push in the right direction, the rest is up to you, but loadRespawnDialog.sqf is the file you should be looking at.
-soul.
https://github.com/A3Wasteland/ArmA3_Wasteland.Stratis/blob/dev/client/systems/playerMenu/dialog/loadRespawnDialog.sqf#L424-L434
Replace with...
Code: [Select]
_towns = [];
{
_town = _x select 0;
_town call _setPlayersInfo;
_towns pushBack _town;
} forEach (call cityList);
and see...
https://github.com/A3Wasteland/ArmA3_Wasteland.Stratis/blob/dev/client/systems/playerMenu/dialog/loadRespawnDialog.sqf#L452-L459
Replace with...
Code: [Select]
_locations = if (showBeacons) then
{
[_beacons, [], {_x call _getPlayerThreshold}, "DESCEND", {alive _x}] call BIS_fnc_sortBy
}
else
{
[_towns, [], 0, "DESCEND"] call BIS_fnc_sortBy
};
That's a push in the right direction, the rest is up to you, but loadRespawnDialog.sqf is the file you should be looking at.
-soul.