Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events - Add "turretOpticsMode" Player EH #1665

Merged
merged 3 commits into from
Jul 28, 2024

Conversation

hypoxia125
Copy link
Contributor

When merged this pull request will:

  • Add player event handler to detect when the player changes turret zoom

Requires Arma 3 2.10

Adds a player event handler to detect when the player changes turret zoom (FOV)-
@hypoxia125 hypoxia125 changed the title Added "turretOpticsMode" player event handler [Player Event Handlers] Added "turretOpticsMode" May 30, 2024
@hypoxia125 hypoxia125 closed this May 30, 2024
@hypoxia125 hypoxia125 reopened this May 30, 2024
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
@jonpas jonpas added this to the 3.18.0 milestone Jun 13, 2024
@jonpas jonpas changed the title [Player Event Handlers] Added "turretOpticsMode" Events - Add "turretOpticsMode" Player EH Jun 13, 2024
@@ -44,7 +44,7 @@ private _state = [
_unit, group _unit, leader _unit,
currentWeapon _unit, currentMuzzle _unit, currentWeaponMode _unit,
getUnitLoadout _unit, _vehicle, _turret, _vehicle currentWeaponTurret _turret,
currentVisionMode _controlledEntity, cameraView
currentVisionMode _controlledEntity, cameraView, getTurretOpticsMode _unit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this should be _unit or focusOn for UAVs
will test

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't seem to matter
getTurretOpticsMode focuson = getTurretOpticsMode player

@PabstMirror PabstMirror merged commit acea974 into CBATeam:master Jul 28, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants