Page MenuHomeFeedback Tracker

moduleRespawnVehicle: If vehicle is destroyed, could respawns several times in same instant
New, NormalPublic

Description

When we synchronise moduleRespawnVehicle with vehicle, and we destroy the vehicle, often it respawns in two replicas.

But those replicas could each one make respawn two replicas... In exponential mean!
That produces explosions at respawn position, and can crash the server.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 8
Operating System Version
1.98.146373
Category
Scripting
Steps To Reproduce

Nearly "Always"...

Synchronise an empty vehicle with the module moduleRespawnVehicle_F,
Use an AT unit (RPG-7)
If needed, use this init code on the human unit:

this allowDamage false;

If it works fine, restart the mission and try again. Or simply have a lot of respawnable vehicles around you.

Fire on the vehicle (be close to be sure to make the most explosive damage.

Additional Information

It's higly possible problem come from a multi call of BIS_fnc_moduleRespawnVehicle,
where the MPEnventHandler MPHit [BIS_fnc_moduleRespawnVehicle_mphit] and MPKilled [BIS_fnc_moduleRespawnVehicle_mpkilled] call in same time BIS_fnc_moduleRespawnVehicle function from the same old vehicle, and can by this way create two vehicles.

Event Timeline

Tequiller created this task.May 8 2020, 9:40 PM