Jump to content

Recommended Posts

Hey folks,

 

i made a custom camoface ace action as code see below. In singleplayer everything works fine but when i put the pbo on my server there is only the ace action and nothing happens. So where is my mistake. Please have a look.

 

ACE_ACTION:

Quote

class ACE_SelfActions

        {

            class Camo

            {

                displayName="Tarnschminke";

                condition="('US_Facepaint' in uniformItems _player || 'US_Facepaint' in vestItems _player || 'US_Facepaint' in backpackItems _player)";

                statement="_this call camofaces_fnc_createDialog;";

                showDisabled=0;

                priority=4;

                icon="basic_equipment\data\functions\ui\Icon_camo_ca.paa";

                class Set_Camo

                {

                    displayName="Tarnschminke auflegen";

                    condition="('US_Facepaint' in uniformItems _player || 'US_Facepaint' in vestItems _player || 'US_Facepaint' in backpackItems _player)";

                    statement="['_Wdl'] call camofaces_fnc_setcamo;";

                    showDisabled=0;

                    priority=4;

                    icon="basic_equipment\data\functions\ui\Icon_camoon_ca.paa";

                };

 

 

setCamo.sqf

Quote

params ["_type"];

currentFace = face player;

_camoFace = (currentFace + _type);

if (currentFace in faces) then{
    [[player , _camoFace],"setFace",true,false] call BIS_fnc_mp;
};
 

 

Share this post


Link to post
Share on other sites

did you check that your _camoFace variable is correct? and that "currentFace in faces" works?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×