Page MenuHomeFeedback Tracker

Respawn event handler does not work 100%
Closed, ResolvedPublic

Description

Scripts linked to respawn event handler sometimes do not work. It has something like a 1% error where script/s linked to this event handler do not work/run.

For example on my DM mission I notice that sometimes people were able to use smoke grenades or to use an optical sight when those items were not included in my mission. Those items are included in the default gear for the BLUFOR rifleman.

I took pictures to probe my point (Please note attached documents)
{F19632}

Details

Legacy ID
1595437354
Severity
None
Resolution
Open
Reproducibility
Random
Category
Engine
Steps To Reproduce
  1. Init field for units include this: This AddEventHandler ["Respawn",{Null = _This ExecVM "Respawn.sqf";}];
  1. Respawn.sqf:

If (IsPlayer(_This Select 0)) Then
{
Null = [] ExecVM "WeaponMenu3D\Main.sqf";
}
Else
{
Null = [_This Select 0] ExecVM "Respawn_Location.sqf";
Null = [_This Select 0] ExecVM "AI_Gear.sqf";
};

Null = [_This Select 0] ExecVM "DM_Limits.sqf";

If ((_This Select 0) == P1) Then {Rating_P1 SetDamage 1;};
If ((_This Select 0) == P2) Then {Rating_P2 SetDamage 1;};
If ((_This Select 0) == P3) Then {Rating_P3 SetDamage 1;};
If ((_This Select 0) == P4) Then {Rating_P4 SetDamage 1;};
If ((_This Select 0) == P5) Then {Rating_P5 SetDamage 1;};
If ((_This Select 0) == P6) Then {Rating_P6 SetDamage 1;};
If ((_This Select 0) == P7) Then {Rating_P7 SetDamage 1;};
If ((_This Select 0) == P8) Then {Rating_P8 SetDamage 1;};
If ((_This Select 0) == P9) Then {Rating_P9 SetDamage 1;};
If ((_This Select 0) == P10) Then {Rating_P10 SetDamage 1;};
If ((_This Select 0) == P11) Then {Rating_P11 SetDamage 1;};
If ((_This Select 0) == P12) Then {Rating_P12 SetDamage 1;};
If ((_This Select 0) == P13) Then {Rating_P13 SetDamage 1;};
If ((_This Select 0) == P14) Then {Rating_P14 SetDamage 1;};
If ((_This Select 0) == P15) Then {Rating_P15 SetDamage 1;};
If ((_This Select 0) == P16) Then {Rating_P16 SetDamage 1;};

Null = [] ExecVM "WeaponMenu3D\Main.sqf" and Null = [_This Select 0] ExecVM "AI_Gear.sqf" will remove all the unit gear and NEVER it will include smoke or the HAMR sight.

Additional Information

This issue looks like that is linked to a network issue as this problem only is visible when other players join to the match.

This never happened to me when I test the mission alone.

I even asked players and they confirm that the scripts on respawn were not triggered.

Event Timeline

Murcielago edited Additional Information. (Show Details)
Murcielago set Category to Engine.
Murcielago set Reproducibility to Random.
Murcielago set Severity to None.
Murcielago set Resolution to Open.
Murcielago set Legacy ID to 1595437354.May 7 2016, 2:18 PM
MadDogX added a subscriber: MadDogX.May 7 2016, 2:18 PM

Mass closing ancient tickets with no activity for > 12 months; assume fixed or too trivial.

If this issue is still relevant in current dev build, please re-post.