remoteExec

From Bohemia Interactive Community
Revision as of 10:44, 26 May 2015 by Richard.biely (talk | contribs) (Created page with "Category:Scripting_Commands_Arma_3 Category:Arma_3:_New_Scripting_Commands_List {{Command|= Comments __________________________________________________________________...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
Asks server to execute a command remotely by spawning it.
Groups:
Uncategorised

Syntax

Syntax:
remoteExec unit
Parameters:
funcName: String
[params,targets,id]: Array
params: Array - a list of parameters passed to function funcName
targets: Number, String, Side, Object, Group or an Array of any of them
- Number: function will be executed only on client with the given ID. When negative, it will be executed everywhere except on client with the ID. ID stands for ID returned by owner
- String: the function will be executed only where unit defined by the variable is local
- Object: the function will be executed only where unit is local
- Group: the function will be executed only on players who are members of the group
- Side: the function will be executed on all players of the given side
Return Value:
Nothing

Examples

Example 1:
"hint" remoteExec ["hello", 0]; // runs hint "hello" on each connected client
Example 2:
"hint" remoteExec ["hello", 3]; // runs hint "hello" on first connected client
Example 3:
"hint" remoteExec ["hello", -2]; // runs hint "hello" everywhere but server

Additional Information

See also:
remoteExecCall BIS_fnc_MP

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note