Page MenuHomeFeedback Tracker

Read and change opticsMode with scripting commands
New, NormalPublic

Description

Currently it is not possible to get/read the opticsMode with a scripting command or set the opticsMode with a scripting command.

opticsMode can only be changed by pressing a key to change it (opticsMode => "Left Ctrl+Sec. Mouse Btn." or "/ [NUM]")

It would be really nice to have this for respawn for example. So if a player respawns a respawn script could read out opticsMode in a killed eventhandler and set it again on respawn.

Please implement scripting commands for reading and setting opticsMode.

Details

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

Event Timeline

Xeno created this task.Apr 9 2017, 11:05 AM
Unknown Object (User) added a subscriber: Unknown Object (User).Apr 9 2017, 11:09 AM
Xeno added a comment.Jan 23 2018, 9:01 PM

Any chance that this will make it into one of the next releases? :-)

dedmen claimed this task.Jun 7 2020, 3:14 PM
dedmen added a project: Restricted Project.
dedmen set Ref Ticket to AIII-53007.
dedmen moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
dedmen moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Jun 7 2020, 3:17 PM

Index of optics mode comes from
"visionMode" config entry if only one exists.
or "OpticsModes" config entry from the scope I assume.