Page MenuHomeFeedback Tracker

BIS_fnc_PlaneEjection can get stuck in loop
New, NormalPublic

Description

BIS_fnc_PlaneEjection

In cases where the parachute gets stuck above the ground (such as landing in jungle trees), this function can get stuck at Line 175 (A3 1.70 stable).

waitUntil{isNull attachedTo _canopy};

The reason for this is that it is relying on Parachute object to despawn once it hits the ground (as they're programmed to do), but if it never hits the ground, there are troubles.

Suggest putting some sort of failsafe timer in there to continue the script if ~3-5 minutes have passed.

For instance, until its fixed I will be overwriting the function and inserting this:

private _timer = time + 180;
waitUntil {
	sleep 0.1;
	((isNull _canopy) || (time > _timer) || (isNull (attachedTo _canopy)))
};

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General
Additional Information

Also with the part at the bottom to add the canopy to the remains collector, I would probably check to see that the system is even running prior to using it.

replacing this:

		addToRemainsCollector [_ejectionSeat];
		if (_canopy != objNull) then {
			addToRemainsCollector [_canopy];
		};

with this:

	if (!((getMissionConfigValue ['wreckManagerMode',0]) isEqualTo 0)) then {
		addToRemainsCollector [_ejectionSeat];
		if (!isNull _canopy) then {
			addToRemainsCollector [_canopy];
		};
	};

^ if wreck manager mode is not 0, add to

Event Timeline

MDCCLXXVI updated the task description. (Show Details)Jun 11 2017, 8:30 AM
MDCCLXXVI edited Additional Information. (Show Details)Jun 11 2017, 8:37 AM
MDCCLXXVI edited Additional Information. (Show Details)
MDCCLXXVI updated the task description. (Show Details)Jun 11 2017, 8:45 AM