broma-arma / BromA-Framework-A3-Addon

The addon version of the BromA Framework for ArmA 3.
5 stars 9 forks source link

Players unconscious task completes when the mission starts #180

Closed Coryf88 closed 10 months ago

Coryf88 commented 2 years ago

Having a task that depends on player state seems to act as if there are no players on mission start.

E.g. Players unconscious task: allPlayers findIf { _x getVariable ["ACE_isUnconscious", false] } == -1

Coryf88 commented 10 months ago

Use call BIS_fnc_listPlayers instead of allPlayers.

allPlayers: The complete array of allPlayers may get delayed on mission start in multiplayer. Use BIS_fnc_listPlayers to obtain it earlier.