For now it is impossible to get and set weapon zeroing and get/set weapon scope mode.
Description
Details
- Legacy ID
- 3224353197
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Feature Request
Event Timeline
There is a get-command for the zeroing.
https://community.bistudio.com/wiki/currentZeroing
There is no set-command though.
It should correspond with these config entries:
discreteDistance[] = {100,200,300,400,500,600};
discreteDistanceInitIndex = 1;
zeroingIndex player;
-> 1
player setZeroingIndex 5;
The commands for the scope mode could be following the configs too. Example ARCO:
class OpticsModes {
class ARCO2collimator {...};
class ARCO2scope: ARCO2collimator {...};
};
getOpticsMode player;
-> "ARCO2collimator"
player setOpticsMode "ARCO2scope";
Also it will be good to do that for different muzzles (for weapons with GLs).
UPD: Have justed checked currentZeroing and found that it returns value not index. Probably, we will need currentZeroingIndex command or setZeroing (value not index).