Page MenuHomeFeedback Tracker

malfunction in vehicle respawn module
New, WishlistPublic

Description

the vehicle respawn module does not respawn vehicles if these are unable to move (_veh canMove == false) and an AI crew is present inside.
if the overall damage of an Helicopter is over 0.9, the crew disembarks automatically, but if only the MainRotor is destroyed (_veh setHitPointDamage ["HitHRotor",1]), the crew still remains in the Helicopter.

At all you can say, the vehicle respawn script can not handle AI controlled vehicles which returns a "false" when asking (_veh canMove), as long as members of the crew are still inside the vehicle.

Details

Legacy ID
3611688327
Severity
None
Resolution
Open
Reproducibility
Always
Category
Editor
Steps To Reproduce

use VR Map!
place a vehicle respawn module and configure it with:

30,
200,
999,
createVehicleCrew (_this select 0),
startposition,
random,
delete,
deactivate,
activate,
yes

place an emty "B_Heli_Transport_01_F", name it Heli1 and sync it with the module.

place your player on the Map.

start the mission.

now you can test several options in the Debug-console:
Heli1 setHitPointDamage ["HitHRotor",1];
Heli1 setdamage 0.91;
Heli1 setposATL [(getposATL Heli1 select 0) + 400,(getposATL Heli1 select 1) + 400,getposATL Heli1 select 2];

combine them, you will see what the problem is.

Additional Information

use this in the Codeformular for a temporary walkaround;

null = [_this select 0] spawn {
private ["_veh"];
_veh = _this select 0;
waitUntil{!canMove _veh || !alive _veh};
{_x leaveVehicle _veh} forEach crew _veh}; //or {deleteVehicle_x} forEach crew _veh};

Event Timeline

CHIMERACyborg edited Additional Information. (Show Details)
CHIMERACyborg set Category to Editor.
CHIMERACyborg set Reproducibility to Always.
CHIMERACyborg set Severity to None.
CHIMERACyborg set Resolution to Open.
CHIMERACyborg set Legacy ID to 3611688327.May 8 2016, 1:36 PM

Can confirm. It's a race condition between the scripted eventhandler that executes the expression line and the module script deleting the wreck. The scripted eventhandler is spawned and therefore executed at least one frame too late.

Jigsor added a subscriber: Jigsor.Jul 20 2017, 2:00 AM