Page MenuHomeFeedback Tracker

[Feature Request] Eventhandler (switchOptics)
Assigned, WishlistPublic

Description

Ref:
https://community.bistudio.com/wiki/cameraView

Syntax:

unitName addEventhandler ["switchOptics", {
params [_unit,_opticMode(config class or index),_aiming (true/false)]
}];

Description:
switchOptics - fires when a player changes opticsMode or begins to aim down sights.
Fires at the start of the aimTransition, faster than cameraView

Reasoning:
Currently the only method of telling if the player is currently aiming down sight is with the script command ‘cameraView’, however cameraView only changes when the transition animation completes (the player raises the weapons sight in line with their eye). With this eventhandler script writers can detect when the player 1) begins to aim down sights and 2) what optics mode they're using or changed to.

Currently the only method to detect the active optics mode is to use a hook in the unitinfo

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Scripting

Event Timeline

KercKasha triaged this task as Wishlist priority.
KercKasha updated the task description. (Show Details)May 29 2020, 2:17 PM
KercKasha updated the task description. (Show Details)May 29 2020, 2:26 PM
dedmen changed the task status from New to Assigned.Oct 29 2020, 9:09 AM
dedmen set Ref Ticket to AIII-53468.
dedmen moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
dedmen changed the visibility from "Custom Policy" to "Public (No Login Required)".Mar 22 2022, 2:14 PM
dedmen added a project: Arma 3.