Jump to content

Lucullus

Member
  • Content Count

    134
  • Joined

  • Last visited

  • Medals

Posts posted by Lucullus


  1. _weapon_class_name = "arifle_Katiba_GL_F";
    _muzzle_magazines = [];
    _muzzle_class = (getArray (configFile >> "CfgWeapons" >> _weapon_class_name >> "muzzles")) select 1;
    
    if (isNil {_muzzle_class}) then
    {	_muzzle_magazines = ["no Muzzle"];
    }
    else
    {	_muzzle_magazines = getArray (configFile >> "CfgWeapons" >> _weapon_class_name >> _muzzle_class >> "magazines")
    };
    
    hint str (_muzzle_magazines);

     

    ...tested it only with Katiba and MX.

    • Like 1

  2. 8 hours ago, dlegion said:

    Gcredits = Garsenal getVariable "R3F_LOG_CF_credits";

    Variable is global, so its in your missionNamespace.

     

    21 hours ago, Nikander said:

    with uiNamespace do {...

    The script is running in uiNamespace, so "Gcredits" is unknown.

     

    change this

    21 hours ago, Nikander said:

    while {true} do { _ctrl ctrlSetStructuredText parseText format[ "<t color='#8f8f8f' align='center' size='0.7'> Score:%1</t>", Gcredits ]; };

    to

    21 hours ago, Nikander said:

    while {true} do { _ctrl ctrlSetStructuredText parseText format[ "<t color='#8f8f8f' align='center' size='0.7'> Score:%1</t>", missionNamespace getVariable "Gcredits" ]; };

    and it works

     

     

    • Like 1

  3. Test a little bit...

     

    Luc_findAnimationSources =
    {    _targetType = typeOf cursorTarget;
        _cfg = configfile >> "cfgvehicles" >> _targetType >> "animationSources";
        _animations = [];
        {    _displayName = getText (_x >> "displayName");
            if !(_displayName isEqualTo "") then
            {    _animation = configname _x;
                _animations pushback [_animation,_displayName];
            };
        } foreach (configproperties [_cfg,"isclass _x",true]);
        _animations
    };

    hint str ([] call Luc_findAnimationSources);

     

    Shows the named animationSources.

×