安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题
I inteded to do it this way but it makes it more costly to loop through. I wish JSON was supported natively...l
I think what Dwyer might have been asking, and what I´m asking now too (because I barely know anything about modding Arma), is how exactly do you write down the array in the sqf for BettIR so it will recognize more than one NVG or attachment. Say you want three NVGs to be recognized. How would you put this together?
BettIR_compatibleNVGs pushBack 'NVG1';
BettIR_compatibleNVGs pushBack [0,0.15,0.14]; // offset from __base_NVG
BettIR_compatibleNVGs pushBack 'NVG2';
BettIR_compatibleNVGs pushBack [0,0.15,0.14]; // offset from __base_NVG
BettIR_compatibleNVGs pushBack 'NVG3';
BettIR_compatibleNVGs pushBack [0,0.15,0.14]; // offset from __base_NVG
I've just realised I've done a booboo in the main post, fixed it now.
Essentially the way you put it in the code... Almost. The offest should go into BettIR_compatibleNVGsOffsets array; so it would have to be
In which case, you can run:
Try that and lemme know :)
// these two lines will make an item called "somecustommod_pvs15" compatible with BettIR
BettIR_compatibleNVGs pushBack 'NVG1';
BettIR_compatibleNVGsOffsets pushBack [0,0.15,0.14]; // offset from __base_NVG
BettIR_compatibleNVGs pushBack 'NVG2';
BettIR_compatibleNVGsOffsets pushBack [0,0.15,0.14]; // offset from __base_NVG
BettIR_compatibleNVGs pushBack 'NVG3';
BettIR_compatibleNVGsOffsets pushBack [0,0.15,0.14]; // offset from __base_NVG
Now I´m trying to make it work with attachments. I have an IR laser for a pistol from the CUP addon, but it doesn´t work:
// the below two lines will make an attachment called "somecustommod_dbal" compatible with BettIR
BettIR_compatibleAttachments pushBack 'CUP_acc_MLPLS_Laser';
BettIR_compatibleAttachmentsOffsets pushBack [0, 0.28, 0.12];
Did you happen to make the addon work only with rifle attachments at the time, or is there something I´m missing here?
//This works
BettIR_compatibleNVGs pushBack 'TIOW_IG_NVG';
BettIR_compatibleNVGs pushBack [0,0.15,0.14]; // offset from __base_NVG
//This doesnt despite it being the same NVG glases but with different collor.
BettIR_compatibleNVGs pushBack 'TIOW_IG_NVG_Green';
BettIR_compatibleNVGs pushBack [0,0.15,0.14]; // offset from __base_NVG
//This doesnt work
BettIR_compatibleNVGs pushBack 'TIOW_PhotovisorGoggles';
BettIR_compatibleNVGs pushBack [0,0.15,0.14]; // offset from __base_NVG
//This doesnt work
BettIR_compatibleNVGs pushBack 'ML700_Photo_NVG';
BettIR_compatibleNVGs pushBack [0,0.15,0.14]; // offset from __base_NVG
//This doesnt work
BettIR_compatibleNVGs pushBack 'TIOW_Bionic_Eye';
BettIR_compatibleNVGs pushBack [0,0.15,0.14]; // offset from __base_NVG
//This doesnt work
BettIR_compatibleNVGs pushBack 'TIOW_Bionic_Eye_Green';
BettIR_compatibleNVGs pushBack [0,0.15,0.14]; // offset from __base_NVG
//This doesnt work
BettIR_compatibleNVGs pushBack 'TIOW_Bionic_Eye_2';
BettIR_compatibleNVGs pushBack [0,0.15,0.14]; // offset from __base_NVG
//This doesnt work
BettIR_compatibleNVGs pushBack 'TIOW_Bionic_Eye_2_Green';
BettIR_compatibleNVGs pushBack [0,0.15,0.14]; // offset from __base_NVG
so far i was succesfull only with one particular NVG. BUt i canot make it work with none of the others. What are the requirements the NVG must have to work with BetIR?
See my latest comment in this thread.
Any idea ?