ArmaSweden / arma-sweden-extras

Custom content for Arma 3 created for Arma Sweden.
https://steamcommunity.com/sharedfiles/filedetails/?id=887282071
Other
0 stars 0 forks source link

Player spectates squad members when unconscious #4

Closed Avokadomos closed 2 years ago

Avokadomos commented 2 years ago

Player should only be able to spectate their own body. Spectator mode automatically jumps to another alive squad member.

Avokadomos commented 2 years ago

EGSpectator can only restrict spectating to sides by default, so some digging into the EGSpectator framework has to be done.

Avokadomos commented 2 years ago

Spectator focus is set through the RscEGSpectator_focus variable in uiNamespace. Using uiNamespace setVariable ["RscEGSpectator_focus", _object] is enough to change focus to _object.

Avokadomos commented 2 years ago

Fixed in a640c18cc4cdb8c593100174f52d13c4f7e3a7ea.