RHS Feedback - AFRF
View Issue Details
0006254AFRF[All Projects] Generalpublic2021-04-04 03:002021-04-15 18:40
OutlinedBudgie 
reyhard 
noneminoralways
closedno change required 
 
 
No
Stable
2.02
No
0006254: habarScr custom function not working
changing anything in the array from 1 to 0 [x,x,x,x] doesn't do anything
put "habarScr = [this,3,[0,0,0,0]] execVM "\rhsafrf\addons\rhs_c_tanks\scripts\bgr_t80_habar.sqf";" in the init field of a T-80 tank. It will not remove anything
No tags attached.
Issue History
2021-04-04 03:00OutlinedBudgieNew Issue
2021-04-04 09:45reyhardNote Added: 0011609
2021-04-04 09:45reyhardAssigned To => reyhard
2021-04-04 09:45reyhardStatusnew => feedback
2021-04-04 15:42OutlinedBudgieNote Added: 0011612
2021-04-04 15:42OutlinedBudgieStatusfeedback => new
2021-04-08 08:58reyhardNote Added: 0011617
2021-04-08 08:58reyhardStatusnew => feedback
2021-04-08 22:25OutlinedBudgieNote Added: 0011621
2021-04-08 22:25OutlinedBudgieStatusfeedback => new
2021-04-15 02:09OutlinedBudgieNote Added: 0011626
2021-04-15 18:39reyhardNote Added: 0011628
2021-04-15 18:39reyhardStatusnew => closed
2021-04-15 18:40reyhardResolutionopen => no change required

Notes
(0011609)
reyhard   
2021-04-04 09:45   
why are you not using Eden attributes? Script that you pasted can be used on vehicles spawned mid mission or created using old 2d editor
(0011612)
OutlinedBudgie   
2021-04-04 15:42   
I tested it for an init script for a game mode (KP Liberation https://github.com/KillahPotatoes/KP-Liberation/wiki/EN_ConfigFiles [^] scroll down to kp_objectInits.sqf) So it only works mid mission? Thanks for the declaration. Also the quotation marks on you websites instead of [ “ ” ] it should be [ " " ]. Caused me some hour long confusion with weird errors till I realized that
(0011617)
reyhard   
2021-04-08 08:58   
do you happen to know if kp_objectInits is happening during mission init? If yes, then indeed, all your customization will be overwritten after spawn. I've also updated documentation so it's now referencing functions that we have, instead of execVM solution
(0011621)
OutlinedBudgie   
2021-04-08 22:25   
I do not know, if it is it isn't working. Decals are applying but the exterior stays the same no matter what. Any other way to test?
(0011626)
OutlinedBudgie   
2021-04-15 02:09   
tried it again in the init box of eden the first 3 scripts work
habarScr = [this,0] call RHS_fnc_t80_habar;
habarScr = [this,1] call RHS_fnc_t80_habar;
habarScr = [this,2] call RHS_fnc_t80_habar;

however the customization script does not work, it doesn't do anything no matter what the input for the array is. Instead of customizing the tank it functions the same as habarScr = [this,1] call RHS_fnc_t80_habar; (to enable all)
(0011628)
reyhard   
2021-04-15 18:39   
please use Eden attributes. Script that you pasted can be used on vehicles spawned mid mission or created using old 2d editor