Skip to content

Commit

Permalink
Fixed missing function call
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Aug 16, 2023
1 parent abfc3bf commit f249424
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cScripts/CfgFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class cScripts {
class setRadioChannel {};
class setActiveRadio {};

class player_getCompany {};
class player_setCompany {};

// Other Functions
class unit_getVariables {};
Expand Down
1 change: 0 additions & 1 deletion cScripts/functions/gear/fn_gear_applyLoadout.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ if (_loadConfig) then {
if (GVAR(isPlayer)) then {
private _company = getText (_config >> "company");
[_company] call EFUNC(player,setCompany);
if (_company != "") then {INFO_2("Gear", "%1 have company variable set to %2", name _unit, _company);};
};
};

Expand Down
2 changes: 2 additions & 0 deletions cScripts/functions/players/fn_player_setCompany.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ params [["_company", "", [""]]];
_company = toLower _company;
SETVAR(player,EGVAR(Player,Company),_company);

INFO_2("Player", "%1 have company set to '%2'", name _unit, _company);

_company
3 changes: 2 additions & 1 deletion cScripts/functions/players/fn_unit_getVariables.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
* HASHMAP
*
* Example:
* call cScripts_fnc_unit_getVariables
* [player] call cScripts_fnc_unit_getVariables
* [cursorObject] call cScripts_fnc_unit_getVariables
*
*/

Expand Down

0 comments on commit f249424

Please sign in to comment.