Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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 ?