remoteExec – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
(→‎Question: Answer)
m (Text replacement - "<code>" to "<code style="display: block">")
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
I receive:
I receive:
"''Scripting function 'bis_fnc_execvm' is not allowed to be remotely executed.''"
"''Scripting function 'bis_fnc_execvm' is not allowed to be remotely executed.''"
I understand that bis_fnc_execvm should not be whitelisted. Any solutions?
I understand that bis_fnc_execvm should not be whitelisted. Any solutions? --[[User:RHfront|RHfront]]
: The game complains about bis_fnc_execvm everytime someone joins the server, that log message is not related to your code. What you need is something like this in your [[CfgRemoteExec]]: <code>class Commands <br>{<br> mode = 1; // whitelist only<br> jip = 0;<br><br> class sideChat {};<br>};</code> --[[User:AgentRev|AgentRev]] 06:42, 3 October 2019 (CEST)
: The game complains about bis_fnc_execvm everytime someone joins the server, that log message is not related to your code. What you need is something like this in your [[CfgRemoteExec]]: <code style="display: block">class Commands <br>{<br> mode = 1; // whitelist only<br> jip = 0;<br><br> class sideChat {};<br>};</code> --[[User:AgentRev|AgentRev]] 06:42, 3 October 2019 (CEST)

Latest revision as of 11:52, 11 January 2023

Naming comventions

In my humble opinion, it would be senseful to call this command "remoteExecSpawn" since the other one is "remoteExecCall" and it would be clearer to the user that this command is actually spawning the remotely executed code. --Johnny

Question

[_unit, "sendSideChat works"] remoteExec ["sideChat", _owner, false]; I receive: "Scripting function 'bis_fnc_execvm' is not allowed to be remotely executed." I understand that bis_fnc_execvm should not be whitelisted. Any solutions? --RHfront

The game complains about bis_fnc_execvm everytime someone joins the server, that log message is not related to your code. What you need is something like this in your CfgRemoteExec: class Commands
{
mode = 1; // whitelist only
jip = 0;

class sideChat {};
};
--AgentRev 06:42, 3 October 2019 (CEST)