Jump to content

switchmove/removeAction remoteexec restriction


Recommended Posts

Hello!

Just as the title says, I am having trouble getting this remoteexec whitelsited..

I have the function whitelisted in my cfgremoteexec.hpp, under the functions class:
        F(BIS_fnc_switchmove,ANYONE)
        F(BIS_fnc_removeAction,ANYONE

then in my battleeye remoteexec.txt file here it is, :
        !BIS_fnc_(effectKilled(AirDestruction|Secondaries)|execVM|removeAction|switchmove)

 

We need this to work as we use a tazer mod that plays an animation on a player when shot by tazer, everytime the player is shot the RPT plays this message:

Scripting command 'switchmove' is not allowed to be remotely executed

Anytime the player calls the remoteExec on a rmeoveaction this plays:
Scripting command 'removeaction' is not allowed to be remotely executed
Any ideas where I went wrong? 

Any help is appreciated.
SlavKing
Link to comment
Share on other sites

I have added it like this in my CfgRemoteExec:

Spoiler

    class Commands {
        mode = 1;
        jip = 0;

        F(addHandgunItem,ANYONE)
        F(addMagazine,ANYONE)
        F(addPrimaryWeaponItem,ANYONE)
        F(addWeapon,ANYONE)
        F(setFuel,ANYONE)
        F(switchMove,ANYONE)
    };
};
 

maybe that works for you?

Edited by gustavseitztestarma3
Link to comment
Share on other sites

  • 7 months later...
Posted (edited)

In Arma 3, the error message "Scripting command 'switchmove' is not allowed to be remotely executed"

The switchmove command is used to change the animation or movement mode of a unit. However, due to security reasons, certain scripting commands are restricted from being executed remotely.

In the case of the switchmove command, it is not allowed to be executed remotely, which means you can only use it on the local machine where the script is running or in a server-side script. If you attempt to execute it remotely, you will encounter the mentioned error.

To resolve this issue, you should ensure that you are running the switchmove command on the machine where the unit is local, or use an alternative method that is allowed for remote execution if you need to change the animation or movement mode of a unit remotely.

 

Try something like

Quote

player playMoveNow "coolanimationhere";

 

Edited by KllTA
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.