Jump to content

Gemberkoekje

Member
  • Content Count

    3
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Gemberkoekje

  • Rank
    Rookie
  1. Hi all, I want to call BIS_fnc_unitAddon to get the addon from which an object came from, but I only have a config: _weapons = [configFile >> "CfgGlasses",0] call BIS_fnc_returnChildren; { _configName = configName _x; _addon = [ configFile >> "CfgGlasses" >> _configName ] call BIS_fnc_unitAddon; diag_log text(format['addon: "%1",',_addon]); } } foreach _weapons; This fails as it expects an object, instead of a config. How can I call this function properly?
  2. Gemberkoekje

    Referencing files in config.cpp

    Aahh that was it! Thanks!
  3. Hi all, I'm a new modder, and I've been working on a script for a face. This is part of my config.cpp class CfgFaces { class Default; class Man_A3: Default { class Default; class MyPerson : Default { identityTypes[] = {"MyPerson"}; displayname = "MyPerson"; material = "\Skin.rvmat"; }; }; }; Now, the problem I'm having is with Skin.rvmat. I'm adding it to my PBO, I can see it in my PBO if I open it with the PBO manager, but in the game it isn't showing the correct material. How do I properly reference a file from config.cpp which is in my PBO?
×